35 #define RC_MAX_DSM_CHANNELS 9 int64_t rc_dsm_nanos_since_last_packet(void)
Measures time since the last DSM packet was received.
int rc_dsm_bind_routine(void)
Begins the binding routine and prints instructions to the screen along the way.
int rc_dsm_is_new_data(void)
This is a check to see if new data is available.
void rc_dsm_set_callback(void(*func)(void))
Set your own callback function to be called when new DSM data is ready.
double rc_dsm_ch_normalized(int ch)
Returns a scaled value from -1 to 1 corresponding to the min and max values recorded during calibrati...
int rc_dsm_ch_raw(int ch)
Returns the pulse width in microseconds commanded by the transmitter for a particular channel...
int rc_dsm_init(void)
Starts the DSM background service.
int rc_dsm_channels(void)
fetches number of DSM channels currently being received.
int rc_dsm_cleanup(void)
stops the DSM background service
void rc_dsm_set_disconnect_callback(void(*func)(void))
Set your own callback function to be called when DSM loses connection.
int rc_dsm_is_connection_active(void)
Easily check on the state of the DSM radio packets without checking timeouts yourself.
int rc_dsm_calibrate_routine(void)
routine for measuring the min and max values from a transmitter on each channel and save to disk for ...
int rc_dsm_resolution(void)
Used to determine if DSM packets are arriving with 10 or 11-bit resolution.