Public Member Functions | Protected Member Functions | Private Attributes | List of all members
WithRobot::MyAhrsPlus Class Reference

#include <myahrs_plus.hpp>

Inheritance diagram for WithRobot::MyAhrsPlus:
Inheritance graph
[legend]

Public Member Functions

uint32_t get_sample_count ()
 
 MyAhrsPlus (std::string port="", unsigned int baudrate=115200)
 
void register_attribute_callback (void(*callback)(void *context, int sensor_id, const char *attribute_name, const char *value), void *callback_context)
 
void register_data_callback (void(*callback)(void *context, int sensor_id, SensorData *sensor_data), void *callback_context)
 
bool wait_data (int timeout_msec=500)
 
virtual ~MyAhrsPlus ()
 
- Public Member Functions inherited from WithRobot::iMyAhrsPlus
bool cmd_ascii_data_format (const char *asc_output=0, int timeout_msec=500)
 
bool cmd_baudrate (int timeout_msec=500)
 
bool cmd_baudrate (const char *baudrate, int timeout_msec=500)
 
bool cmd_binary_data_format (const char *bin_output=0, int timeout_msec=500)
 
bool cmd_calibration_parameter (char sensor_type, const char *calibration_parameters=0, int timeout_msec=500)
 
bool cmd_clear_user_orientation_offset (int timeout_msec=500)
 
bool cmd_divider (int timeout_msec=500)
 
bool cmd_divider (const char *divider, int timeout_msec=500)
 
bool cmd_id (int timeout_msec=500)
 
bool cmd_id (const char *str_sensor_id, int timeout_msec=500)
 
bool cmd_mode (const char *mode_string=0, int timeout_msec=500)
 
bool cmd_ping (int timeout_msec=500)
 
bool cmd_restore_all_default (int timeout_msec=500)
 
bool cmd_save (int timeout_msec=500)
 
bool cmd_sensitivity (int timeout_msec=500)
 
bool cmd_serial_number (int timeout_msec=500)
 
bool cmd_set_user_orientation_offset (int timeout_msec=500)
 
bool cmd_set_user_orientation_offset (const char *enable_yaw_offset, int timeout_msec=500)
 
void cmd_trigger ()
 
bool cmd_version (int timeout_msec=500)
 
bool get_attribute (const char *attrib_name, std::string &attrib_value)
 
std::vector< std::string > get_attribute_list ()
 
SensorData get_data ()
 
void get_data (SensorData &data)
 
int get_sensor_id ()
 
 iMyAhrsPlus (std::string port_name="", unsigned int baudrate=115200)
 
bool resync ()
 
const char * sdk_version ()
 
bool start (std::string port_name="", int baudrate=-1)
 
void stop ()
 
virtual ~iMyAhrsPlus ()
 

Protected Member Functions

void OnAttributeChange (int sensor_id, std::string attribute_name, std::string value)
 
void OnSensorData (int sensor_id, SensorData data)
 

Private Attributes

void(* attribute_callback )(void *context, int sensor_id, const char *attribute_name, const char *value)
 
void * attribute_callback_context
 
void(* data_callback )(void *context, int sensor_id, SensorData *sensor_data)
 
void * data_callback_context
 
Platform::Event event
 
Platform::Mutex lock
 
uint32_t sample_count
 

Detailed Description

Definition at line 2951 of file myahrs_plus.hpp.

Constructor & Destructor Documentation

WithRobot::MyAhrsPlus::MyAhrsPlus ( std::string  port = "",
unsigned int  baudrate = 115200 
)
inline

Definition at line 2965 of file myahrs_plus.hpp.

virtual WithRobot::MyAhrsPlus::~MyAhrsPlus ( )
inlinevirtual

Definition at line 2971 of file myahrs_plus.hpp.

Member Function Documentation

uint32_t WithRobot::MyAhrsPlus::get_sample_count ( )
inline

Definition at line 2994 of file myahrs_plus.hpp.

void WithRobot::MyAhrsPlus::OnAttributeChange ( int  sensor_id,
std::string  attribute_name,
std::string  value 
)
inlineprotectedvirtual

Reimplemented from WithRobot::iMyAhrsPlus.

Definition at line 3000 of file myahrs_plus.hpp.

void WithRobot::MyAhrsPlus::OnSensorData ( int  sensor_id,
SensorData  data 
)
inlineprotectedvirtual

Reimplemented from WithRobot::iMyAhrsPlus.

Definition at line 3009 of file myahrs_plus.hpp.

void WithRobot::MyAhrsPlus::register_attribute_callback ( void(*)(void *context, int sensor_id, const char *attribute_name, const char *value)  callback,
void *  callback_context 
)
inline

Definition at line 2982 of file myahrs_plus.hpp.

void WithRobot::MyAhrsPlus::register_data_callback ( void(*)(void *context, int sensor_id, SensorData *sensor_data callback,
void *  callback_context 
)
inline

Definition at line 2988 of file myahrs_plus.hpp.

bool WithRobot::MyAhrsPlus::wait_data ( int  timeout_msec = 500)
inline

Definition at line 2978 of file myahrs_plus.hpp.

Member Data Documentation

void(* WithRobot::MyAhrsPlus::attribute_callback) (void *context, int sensor_id, const char *attribute_name, const char *value)
private

Definition at line 2956 of file myahrs_plus.hpp.

void* WithRobot::MyAhrsPlus::attribute_callback_context
private

Definition at line 2957 of file myahrs_plus.hpp.

void(* WithRobot::MyAhrsPlus::data_callback) (void *context, int sensor_id, SensorData *sensor_data)
private

Definition at line 2959 of file myahrs_plus.hpp.

void* WithRobot::MyAhrsPlus::data_callback_context
private

Definition at line 2960 of file myahrs_plus.hpp.

Platform::Event WithRobot::MyAhrsPlus::event
private

Definition at line 2953 of file myahrs_plus.hpp.

Platform::Mutex WithRobot::MyAhrsPlus::lock
private

Definition at line 2954 of file myahrs_plus.hpp.

uint32_t WithRobot::MyAhrsPlus::sample_count
private

Definition at line 2962 of file myahrs_plus.hpp.


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


myahrs_driver
Author(s): Yoonseok Pyo
autogenerated on Thu Jul 16 2020 03:08:51