Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | List of all members
aero::controller::AeroCommand Class Reference

#include <aero3_command.h>

Public Member Functions

std::vector< int16_t > actuateByPosition (uint16_t _time, int16_t *_data)
 
std::vector< int16_t > actuateBySpeed (int16_t *_data)
 
 AeroCommand ()
 
void closePort ()
 
void flushPort ()
 
std::vector< uint16_t > getCurrent (uint8_t _number)
 
std::vector< int16_t > getPosition (uint8_t _number)
 
std::vector< uint16_t > getStatus (uint8_t _number)
 
std::vector< uint16_t > getTemperatureVoltage (uint8_t _number)
 
std::string getVersion (uint8_t _number)
 
void onServo (uint8_t _number, uint16_t _data)
 
bool openPort (std::string _port, unsigned int _baud_rate)
 
void runScript (uint8_t _number, uint16_t _data)
 
void setCurrent (uint8_t _number, uint8_t _max, uint8_t _down)
 
void throughCAN (uint8_t _send_no, uint8_t _command, uint8_t _data1, uint8_t _data2, uint8_t _data3, uint8_t _data4, uint8_t _data5)
 
 ~AeroCommand ()
 

Public Attributes

bool comm_err_
 
bool is_open_
 

Protected Attributes

SerialCommunication serial_com_
 

Private Attributes

unsigned int check_sum_
 
unsigned int count_
 
unsigned int length_
 
std::vector< uint8_t > send_data_
 

Detailed Description

Definition at line 43 of file aero3_command.h.

Constructor & Destructor Documentation

AeroCommand::AeroCommand ( )

Definition at line 120 of file aero3_command.cpp.

AeroCommand::~AeroCommand ( )

Definition at line 127 of file aero3_command.cpp.

Member Function Documentation

std::vector< int16_t > AeroCommand::actuateByPosition ( uint16_t  _time,
int16_t *  _data 
)

Definition at line 446 of file aero3_command.cpp.

std::vector< int16_t > AeroCommand::actuateBySpeed ( int16_t *  _data)

Definition at line 494 of file aero3_command.cpp.

void AeroCommand::closePort ( )

Definition at line 139 of file aero3_command.cpp.

void AeroCommand::flushPort ( )

Definition at line 144 of file aero3_command.cpp.

std::vector< uint16_t > AeroCommand::getCurrent ( uint8_t  _number)

Definition at line 253 of file aero3_command.cpp.

std::vector< int16_t > AeroCommand::getPosition ( uint8_t  _number)

Definition at line 212 of file aero3_command.cpp.

std::vector< uint16_t > AeroCommand::getStatus ( uint8_t  _number)

Definition at line 374 of file aero3_command.cpp.

std::vector< uint16_t > AeroCommand::getTemperatureVoltage ( uint8_t  _number)

Definition at line 294 of file aero3_command.cpp.

std::string AeroCommand::getVersion ( uint8_t  _number)

Definition at line 335 of file aero3_command.cpp.

void AeroCommand::onServo ( uint8_t  _number,
uint16_t  _data 
)

Definition at line 180 of file aero3_command.cpp.

bool AeroCommand::openPort ( std::string  _port,
unsigned int  _baud_rate 
)

Definition at line 132 of file aero3_command.cpp.

void AeroCommand::runScript ( uint8_t  _number,
uint16_t  _data 
)

Definition at line 538 of file aero3_command.cpp.

void AeroCommand::setCurrent ( uint8_t  _number,
uint8_t  _max,
uint8_t  _down 
)

Definition at line 149 of file aero3_command.cpp.

void AeroCommand::throughCAN ( uint8_t  _send_no,
uint8_t  _command,
uint8_t  _data1,
uint8_t  _data2,
uint8_t  _data3,
uint8_t  _data4,
uint8_t  _data5 
)

Definition at line 415 of file aero3_command.cpp.

Member Data Documentation

unsigned int aero::controller::AeroCommand::check_sum_
private

Definition at line 69 of file aero3_command.h.

bool aero::controller::AeroCommand::comm_err_

Definition at line 48 of file aero3_command.h.

unsigned int aero::controller::AeroCommand::count_
private

Definition at line 69 of file aero3_command.h.

bool aero::controller::AeroCommand::is_open_

Definition at line 48 of file aero3_command.h.

unsigned int aero::controller::AeroCommand::length_
private

Definition at line 69 of file aero3_command.h.

std::vector<uint8_t> aero::controller::AeroCommand::send_data_
private

Definition at line 70 of file aero3_command.h.

SerialCommunication aero::controller::AeroCommand::serial_com_
protected

Definition at line 73 of file aero3_command.h.


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


seed_smartactuator_sdk
Author(s):
autogenerated on Mon Nov 2 2020 03:39:20