gusimplewhiteboard
|
Serial interface for the main oculus prime board. More...
#include <Oculus_PrimeSerialInterface.hpp>
Public Member Functions | |
Oculus_PrimeSerialInterface () | |
default constructor More... | |
Oculus_PrimeSerialInterface (const std::string &str) | |
string constructor (see from_string() below) More... | |
void | from_string (const std::string &str) |
parse class properties from a string More... | |
std::string | description () const |
pretty print method for showing the current property values More... | |
![]() | |
CONTROLLED_ARRAY_PROPERTY (uint8_t, forward, 2) CONTROLLED_ARRAY_PROPERTY(uint8_t | |
speed for each wheel More... | |
CONTROLLED_ARRAY_PROPERTY (uint8_t, right, 2) CONTROLLED_PROPERTY(uint8_t | |
stop More... | |
stop | CONTROL_BIT (forward) CONTROL_BIT(left) CONTROL_BIT(right) CONTROL_BIT(stop) wb_oculus_prime_serial() |
< value ignored, mask setting is what's used More... | |
Additional Inherited Members | |
![]() | |
left | |
Serial interface for the main oculus prime board.
Set the oculus prime motor acceleration
Oculus_PrimeSerialInterface i; wb_byte_pair p; p.set_first(15); p.set_second(15); i.set_forward(p); Oculus_PrimeSerialInterface_t.set(i); //Sends the set command via the wb to the oculus prime
Definition at line 38 of file Oculus_PrimeSerialInterface.hpp.
|
inline |
default constructor
Definition at line 44 of file Oculus_PrimeSerialInterface.hpp.
|
inline |
string constructor (see from_string() below)
[in] | str | a serialised string containing properties to set in this class |
Definition at line 50 of file Oculus_PrimeSerialInterface.hpp.
References from_string().
|
inline |
pretty print method for showing the current property values
Definition at line 108 of file Oculus_PrimeSerialInterface.hpp.
|
inline |
parse class properties from a string
[in] | str | a serialised string containing properties to set in this class |
Definition at line 77 of file Oculus_PrimeSerialInterface.hpp.
References ARRAY_PARSER, DELIMITER, wb_oculus_prime_serial::left, PARSE_UINT8, PARSER, SEP, and SV.
Referenced by Oculus_PrimeSerialInterface().