#include <vesc_packet.h>
|
static constexpr CRC::Parameters< crcpp_uint16, 16 > | CRC_TYPE = { 0x1021, 0x0000, 0x0000, false, false } |
|
static const unsigned int | VESC_EOF_VAL = 3 |
| VESC end-of-frame value. More...
|
|
static const int | VESC_MAX_FRAME_SIZE = 6 + VESC_MAX_PAYLOAD_SIZE |
| Largest VESC frame size, in bytes. More...
|
|
static const int | VESC_MAX_PAYLOAD_SIZE = 1024 |
| Maximum VESC payload size, in bytes. More...
|
|
static const int | VESC_MIN_FRAME_SIZE = 5 |
| Smallest VESC frame size, in bytes. More...
|
|
static const unsigned int | VESC_SOF_VAL_LARGE_FRAME = 3 |
| VESC start of "large" frame value. More...
|
|
static const unsigned int | VESC_SOF_VAL_SMALL_FRAME = 2 |
| VESC start of "small" frame value. More...
|
|
| VescPacket (const std::string &name, int payload_size, int payload_id) |
|
| VescPacket (const std::string &name, std::shared_ptr< VescFrame > raw) |
|
| VescFrame (int payload_size) |
|
std::shared_ptr< Buffer > | frame_ |
| Stores frame data, shared_ptr for shallow copy. More...
|
|
BufferRange | payload_ |
| View into frame's payload section. More...
|
|
Definition at line 128 of file vesc_packet.h.
◆ VescPacketValues()
vesc_driver::VescPacketValues::VescPacketValues |
( |
std::shared_ptr< VescFrame > |
raw | ) |
|
|
explicit |
◆ amp_hours()
double vesc_driver::VescPacketValues::amp_hours |
( |
| ) |
const |
◆ amp_hours_charged()
double vesc_driver::VescPacketValues::amp_hours_charged |
( |
| ) |
const |
◆ current_in()
double vesc_driver::VescPacketValues::current_in |
( |
| ) |
const |
◆ current_motor()
double vesc_driver::VescPacketValues::current_motor |
( |
| ) |
const |
◆ duty_now()
double vesc_driver::VescPacketValues::duty_now |
( |
| ) |
const |
◆ fault_code()
int vesc_driver::VescPacketValues::fault_code |
( |
| ) |
const |
◆ rpm()
double vesc_driver::VescPacketValues::rpm |
( |
| ) |
const |
◆ tachometer()
double vesc_driver::VescPacketValues::tachometer |
( |
| ) |
const |
◆ tachometer_abs()
double vesc_driver::VescPacketValues::tachometer_abs |
( |
| ) |
const |
◆ temp_mos1()
double vesc_driver::VescPacketValues::temp_mos1 |
( |
| ) |
const |
◆ temp_mos2()
double vesc_driver::VescPacketValues::temp_mos2 |
( |
| ) |
const |
◆ temp_mos3()
double vesc_driver::VescPacketValues::temp_mos3 |
( |
| ) |
const |
◆ temp_mos4()
double vesc_driver::VescPacketValues::temp_mos4 |
( |
| ) |
const |
◆ temp_mos5()
double vesc_driver::VescPacketValues::temp_mos5 |
( |
| ) |
const |
◆ temp_mos6()
double vesc_driver::VescPacketValues::temp_mos6 |
( |
| ) |
const |
◆ temp_pcb()
double vesc_driver::VescPacketValues::temp_pcb |
( |
| ) |
const |
◆ v_in()
double vesc_driver::VescPacketValues::v_in |
( |
| ) |
const |
◆ watt_hours()
double vesc_driver::VescPacketValues::watt_hours |
( |
| ) |
const |
◆ watt_hours_charged()
double vesc_driver::VescPacketValues::watt_hours_charged |
( |
| ) |
const |
The documentation for this class was generated from the following files: