Public Member Functions | Public Attributes | List of all members
xbot::Command::Data Struct Reference

Data structure containing data for commands. More...

#include <command.hpp>

Public Member Functions

 Data ()
 

Public Attributes

Name command
 
unsigned char led
 
unsigned char lift_height
 
unsigned char pitch_platform_degree
 
bool power_state
 
float radius
 
bool sound_state
 
unsigned char sound_volume
 
float speed
 
unsigned char yaw_platform_degree
 

Detailed Description

Data structure containing data for commands.

It is important to keep this state as it will have to retain knowledge of the last known command in some instances - e.g. for gp_out commands, quite often the incoming command is only to set the output for a single led while keeping the rest of the current gp_out values as is.

For generating individual commands we modify the data here, then copy the command class (avoid doing mutexes) and spin it off for sending down to the device.

Definition at line 66 of file command.hpp.

Constructor & Destructor Documentation

xbot::Command::Data::Data ( )
inline

Definition at line 68 of file command.hpp.

Member Data Documentation

Name xbot::Command::Data::command

Definition at line 81 of file command.hpp.

unsigned char xbot::Command::Data::led

Definition at line 89 of file command.hpp.

unsigned char xbot::Command::Data::lift_height

Definition at line 86 of file command.hpp.

unsigned char xbot::Command::Data::pitch_platform_degree

Definition at line 88 of file command.hpp.

bool xbot::Command::Data::power_state

Definition at line 92 of file command.hpp.

float xbot::Command::Data::radius

Definition at line 85 of file command.hpp.

bool xbot::Command::Data::sound_state

Definition at line 91 of file command.hpp.

unsigned char xbot::Command::Data::sound_volume

Definition at line 90 of file command.hpp.

float xbot::Command::Data::speed

Definition at line 84 of file command.hpp.

unsigned char xbot::Command::Data::yaw_platform_degree

Definition at line 87 of file command.hpp.


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


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:38