#include <sdhx.h>
|
template<typename Dur > |
bool | getData (int16_t(&p)[2], int16_t(&v)[2], int16_t(&c)[2], const Dur &max_age) |
|
uint8_t | getRC () |
|
bool | halt () |
|
bool | init (const char *port, int16_t min_pwm0, int16_t min_pwm1, int16_t max_pwm0, int16_t max_pwm1) |
|
bool | isInitialized () |
|
bool | move (const int16_t(&p)[2], const int16_t(&v)[2], const int16_t(&c)[2]) |
|
bool | poll () |
|
| SDHX () |
|
| ~SDHX () |
|
|
void | doRead () |
|
bool | send (const std::string &command) |
|
bool | setPWM (const int16_t &val, const char *format) |
|
bool | tryParseRC (const char *line) |
|
template<typename T > |
bool | tryReadValues (const char *line, T(&val)[2], const char *format, bool track_time=false) |
|
Definition at line 25 of file sdhx.h.
template<typename Dur >
bool SDHX::getData |
( |
int16_t(&) |
p[2], |
|
|
int16_t(&) |
v[2], |
|
|
int16_t(&) |
c[2], |
|
|
const Dur & |
max_age |
|
) |
| |
|
inline |
bool SDHX::init |
( |
const char * |
port, |
|
|
int16_t |
min_pwm0, |
|
|
int16_t |
min_pwm1, |
|
|
int16_t |
max_pwm0, |
|
|
int16_t |
max_pwm1 |
|
) |
| |
|
inline |
bool SDHX::isInitialized |
( |
| ) |
|
|
inline |
bool SDHX::move |
( |
const int16_t(&) |
p[2], |
|
|
const int16_t(&) |
v[2], |
|
|
const int16_t(&) |
c[2] |
|
) |
| |
|
inline |
bool SDHX::send |
( |
const std::string & |
command | ) |
|
|
inlineprivate |
bool SDHX::setPWM |
( |
const int16_t & |
val, |
|
|
const char * |
format |
|
) |
| |
|
inlineprivate |
bool SDHX::tryParseRC |
( |
const char * |
line | ) |
|
|
inlineprivate |
template<typename T >
bool SDHX::tryReadValues |
( |
const char * |
line, |
|
|
T(&) |
val[2], |
|
|
const char * |
format, |
|
|
bool |
track_time = false |
|
) |
| |
|
inlineprivate |
boost::mutex SDHX::data_mutex |
|
private |
volatile bool SDHX::initialized |
|
private |
boost::chrono::steady_clock::time_point SDHX::last_time |
|
private |
boost::thread SDHX::read_thread |
|
private |
volatile bool SDHX::reading |
|
private |
boost::mutex SDHX::send_mutex |
|
private |
The documentation for this class was generated from the following file: