Public Member Functions | List of all members
vesc_driver::VescPacketValues Class Reference

#include <vesc_packet.h>

Inheritance diagram for vesc_driver::VescPacketValues:
Inheritance graph
[legend]

Public Member Functions

double amp_hours () const
 
double amp_hours_charged () const
 
double current_in () const
 
double current_motor () const
 
double duty_now () const
 
int fault_code () const
 
double rpm () const
 
double tachometer () const
 
double tachometer_abs () const
 
double temp_mos1 () const
 
double temp_mos2 () const
 
double temp_mos3 () const
 
double temp_mos4 () const
 
double temp_mos5 () const
 
double temp_mos6 () const
 
double temp_pcb () const
 
double v_in () const
 
 VescPacketValues (std::shared_ptr< VescFrame > raw)
 
double watt_hours () const
 
double watt_hours_charged () const
 
- Public Member Functions inherited from vesc_driver::VescPacket
virtual const std::string & name () const
 
virtual ~VescPacket ()
 
- Public Member Functions inherited from vesc_driver::VescFrame
virtual const Bufferframe () const
 
virtual ~VescFrame ()
 

Additional Inherited Members

- Static Public Attributes inherited from vesc_driver::VescFrame
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...
 
- Protected Member Functions inherited from vesc_driver::VescPacket
 VescPacket (const std::string &name, int payload_size, int payload_id)
 
 VescPacket (const std::string &name, std::shared_ptr< VescFrame > raw)
 
- Protected Member Functions inherited from vesc_driver::VescFrame
 VescFrame (int payload_size)
 
- Protected Attributes inherited from vesc_driver::VescFrame
std::shared_ptr< Bufferframe_
 Stores frame data, shared_ptr for shallow copy. More...
 
BufferRange payload_
 View into frame's payload section. More...
 

Detailed Description

Definition at line 128 of file vesc_packet.h.

Constructor & Destructor Documentation

vesc_driver::VescPacketValues::VescPacketValues ( std::shared_ptr< VescFrame raw)
explicit

Definition at line 127 of file vesc_packet.cpp.

Member Function Documentation

double vesc_driver::VescPacketValues::amp_hours ( ) const

Definition at line 181 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::amp_hours_charged ( ) const

Definition at line 190 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::current_in ( ) const

Definition at line 155 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::current_motor ( ) const

Definition at line 146 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::duty_now ( ) const

Definition at line 165 of file vesc_packet.cpp.

int vesc_driver::VescPacketValues::fault_code ( ) const

Definition at line 217 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::rpm ( ) const

Definition at line 172 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::tachometer ( ) const

Definition at line 199 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::tachometer_abs ( ) const

Definition at line 208 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::temp_mos1 ( ) const

Definition at line 132 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::temp_mos2 ( ) const

Definition at line 139 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::temp_mos3 ( ) const
double vesc_driver::VescPacketValues::temp_mos4 ( ) const
double vesc_driver::VescPacketValues::temp_mos5 ( ) const
double vesc_driver::VescPacketValues::temp_mos6 ( ) const
double vesc_driver::VescPacketValues::temp_pcb ( ) const

Definition at line 228 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::v_in ( ) const

Definition at line 222 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::watt_hours ( ) const

Definition at line 234 of file vesc_packet.cpp.

double vesc_driver::VescPacketValues::watt_hours_charged ( ) const

Definition at line 240 of file vesc_packet.cpp.


The documentation for this class was generated from the following files:


vesc_driver
Author(s): Michael T. Boulet , Joshua Whitley
autogenerated on Sun Apr 18 2021 02:48:01