PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <rpi_rc_in.h>
Public Member Functions | |
RcInput () | |
~RcInput () | |
int | start () |
void | stop () |
bool | is_running () |
Private Member Functions | |
void | Run () override |
void | _measure () |
int | rpi_rc_init () |
Private Attributes | |
bool | _should_exit = false |
bool | _is_running = false |
orb_advert_t | _rcinput_pub = nullptr |
int | _channels = 8 |
struct input_rc_s | _data = {} |
int * | _mem = nullptr |
key_t | _key = 4096 |
shared memory key (matches the ppmdecode program's key) More... | |
int | _shmid = 0 |
Definition at line 64 of file rpi_rc_in.h.
|
inline |
Definition at line 67 of file rpi_rc_in.h.
References start(), stop(), and ~RcInput().
Referenced by rpi_rc_in_main().
RcInput::~RcInput | ( | ) |
Definition at line 38 of file rpi_rc_in.cpp.
References _is_running, and _mem.
Referenced by RcInput().
|
private |
Definition at line 104 of file rpi_rc_in.cpp.
References _channels, _data, _mem, _rcinput_pub, input_rc_s::channel_count, hrt_absolute_time(), input_rc_s::input_source, ll40ls::instance, orb_advertise_multi(), ORB_ID, ORB_PRIO_DEFAULT, orb_publish(), input_rc_s::rc_failsafe, input_rc_s::rc_lost, input_rc_s::rc_lost_frame_count, input_rc_s::rc_ppm_frame_length, input_rc_s::rc_total_frame_count, input_rc_s::rssi, input_rc_s::timestamp, input_rc_s::timestamp_last_signal, rpi_rc_in::usage(), and input_rc_s::values.
Referenced by is_running(), and Run().
|
inline |
Definition at line 77 of file rpi_rc_in.h.
References _is_running, _measure(), rpi_rc_init(), and Run().
Referenced by rpi_rc_in_main().
|
private |
Definition at line 49 of file rpi_rc_in.cpp.
References _channels, _data, _key, _mem, _shmid, and input_rc_s::values.
Referenced by is_running(), and start().
|
overrideprivate |
Definition at line 95 of file rpi_rc_in.cpp.
References _measure(), _should_exit, and RCINPUT_MEASURE_INTERVAL_US.
Referenced by is_running().
int RcInput::start | ( | ) |
Definition at line 72 of file rpi_rc_in.cpp.
References _is_running, and rpi_rc_init().
Referenced by RcInput(), and rpi_rc_in_main().
void RcInput::stop | ( | ) |
Definition at line 90 of file rpi_rc_in.cpp.
References _should_exit.
Referenced by RcInput(), and rpi_rc_in_main().
|
private |
Definition at line 91 of file rpi_rc_in.h.
Referenced by _measure(), and rpi_rc_init().
|
private |
Definition at line 92 of file rpi_rc_in.h.
Referenced by _measure(), and rpi_rc_init().
|
private |
Definition at line 89 of file rpi_rc_in.h.
Referenced by is_running(), start(), and ~RcInput().
|
private |
shared memory key (matches the ppmdecode program's key)
Definition at line 95 of file rpi_rc_in.h.
Referenced by rpi_rc_init().
|
private |
Definition at line 94 of file rpi_rc_in.h.
Referenced by _measure(), rpi_rc_init(), and ~RcInput().
|
private |
Definition at line 90 of file rpi_rc_in.h.
Referenced by _measure().
|
private |
Definition at line 96 of file rpi_rc_in.h.
Referenced by rpi_rc_init().
|
private |
Definition at line 88 of file rpi_rc_in.h.