Loading...
Searching...
No Matches
MasterBoardInterface Class Reference

#include <master_board_sdk/master_board_interface.h>

Inheritance diagram for MasterBoardInterface:
Collaboration diagram for MasterBoardInterface:

Public Member Functions

 MasterBoardInterface (const std::string &if_name, bool listener_mode=false)
 
 MasterBoardInterface (const MasterBoardInterface &)
 
 ~MasterBoardInterface ()
 
int Init ()
 
int Stop ()
 
void SetMasterboardTimeoutMS (uint8_t)
 
int SendInit ()
 
int SendCommand ()
 
void ParseSensorData ()
 
void PrintIMU ()
 
void PrintPowerBoard ()
 
void PrintADC ()
 
void PrintMotors ()
 
void PrintMotorDrivers ()
 
void PrintStats ()
 
void ResetTimeout ()
 
bool IsTimeout ()
 
bool IsAckMsgReceived ()
 
int GetSessionId ()
 
int GetProtocolVersion ()
 
uint32_t GetSensorsSent ()
 
uint32_t GetSensorsLost ()
 
uint32_t GetCmdSent ()
 
uint32_t GetCmdLost ()
 
uint16_t GetLastRecvCmdIndex ()
 
uint16_t GetCmdPacketIndex ()
 
int GetSensorHistogram (int index)
 
int GetCmdHistogram (int index)
 
void ResetPacketLossStats ()
 
void set_motors (Motor motors[])
 
void set_motor_drivers (MotorDriver motor_drivers[])
 
MotorDriver * GetDriver (int i)
 
Motor * GetMotor (int i)
 
float imu_data_accelerometer (int i)
 
float imu_data_gyroscope (int i)
 
float imu_data_attitude (int i)
 
float imu_data_linear_acceleration (int i)
 
float powerboard_current ()
 
float powerboard_voltage ()
 
float powerboard_energy ()
 
imu_data_t get_imu_data () const
 

Static Public Member Functions

static void KeyboardStop (int signum)
 

Public Attributes

Motor motors [N_SLAVES *2]
 
MotorDriver motor_drivers [N_SLAVES]
 

Constructor & Destructor Documentation

◆ MasterBoardInterface() [1/2]

MasterBoardInterface::MasterBoardInterface ( const std::string &  if_name,
bool  listener_mode = false 
)

◆ MasterBoardInterface() [2/2]

MasterBoardInterface::MasterBoardInterface ( const MasterBoardInterface &  to_be_copied)

◆ ~MasterBoardInterface()

MasterBoardInterface::~MasterBoardInterface ( )

Member Function Documentation

◆ get_imu_data()

imu_data_t MasterBoardInterface::get_imu_data ( ) const
inline

◆ GetCmdHistogram()

int MasterBoardInterface::GetCmdHistogram ( int  index)

◆ GetCmdLost()

uint32_t MasterBoardInterface::GetCmdLost ( )

◆ GetCmdPacketIndex()

uint16_t MasterBoardInterface::GetCmdPacketIndex ( )

◆ GetCmdSent()

uint32_t MasterBoardInterface::GetCmdSent ( )

◆ GetDriver()

MotorDriver * MasterBoardInterface::GetDriver ( int  i)
inline

◆ GetLastRecvCmdIndex()

uint16_t MasterBoardInterface::GetLastRecvCmdIndex ( )

◆ GetMotor()

Motor * MasterBoardInterface::GetMotor ( int  i)
inline

◆ GetProtocolVersion()

int MasterBoardInterface::GetProtocolVersion ( )

◆ GetSensorHistogram()

int MasterBoardInterface::GetSensorHistogram ( int  index)

◆ GetSensorsLost()

uint32_t MasterBoardInterface::GetSensorsLost ( )

◆ GetSensorsSent()

uint32_t MasterBoardInterface::GetSensorsSent ( )

◆ GetSessionId()

int MasterBoardInterface::GetSessionId ( )

◆ imu_data_accelerometer()

float MasterBoardInterface::imu_data_accelerometer ( int  i)
inline

◆ imu_data_attitude()

float MasterBoardInterface::imu_data_attitude ( int  i)
inline

◆ imu_data_gyroscope()

float MasterBoardInterface::imu_data_gyroscope ( int  i)
inline

◆ imu_data_linear_acceleration()

float MasterBoardInterface::imu_data_linear_acceleration ( int  i)
inline

◆ Init()

int MasterBoardInterface::Init ( )

◆ IsAckMsgReceived()

bool MasterBoardInterface::IsAckMsgReceived ( )

◆ IsTimeout()

bool MasterBoardInterface::IsTimeout ( )

◆ KeyboardStop()

void MasterBoardInterface::KeyboardStop ( int  signum)
static

◆ ParseSensorData()

void MasterBoardInterface::ParseSensorData ( )

◆ powerboard_current()

float MasterBoardInterface::powerboard_current ( )
inline

◆ powerboard_energy()

float MasterBoardInterface::powerboard_energy ( )
inline

◆ powerboard_voltage()

float MasterBoardInterface::powerboard_voltage ( )
inline

◆ PrintADC()

void MasterBoardInterface::PrintADC ( )

◆ PrintIMU()

void MasterBoardInterface::PrintIMU ( )

◆ PrintMotorDrivers()

void MasterBoardInterface::PrintMotorDrivers ( )

◆ PrintMotors()

void MasterBoardInterface::PrintMotors ( )

◆ PrintPowerBoard()

void MasterBoardInterface::PrintPowerBoard ( )

◆ PrintStats()

void MasterBoardInterface::PrintStats ( )

◆ ResetPacketLossStats()

void MasterBoardInterface::ResetPacketLossStats ( )

◆ ResetTimeout()

void MasterBoardInterface::ResetTimeout ( )

◆ SendCommand()

int MasterBoardInterface::SendCommand ( )

◆ SendInit()

int MasterBoardInterface::SendInit ( )

◆ set_motor_drivers()

void MasterBoardInterface::set_motor_drivers ( MotorDriver  motor_drivers[])

◆ set_motors()

void MasterBoardInterface::set_motors ( Motor  motors[])

◆ SetMasterboardTimeoutMS()

void MasterBoardInterface::SetMasterboardTimeoutMS ( uint8_t  )

◆ Stop()

int MasterBoardInterface::Stop ( )

Member Data Documentation

◆ motor_drivers

MotorDriver MasterBoardInterface::motor_drivers[N_SLAVES]

◆ motors

Motor MasterBoardInterface::motors[N_SLAVES *2]

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