48 #define RssiValid() TRUE
52 #if PERIODIC_TELEMETRY
57 uint16_t ppm_pulses_usec[RADIO_CTL_NB];
58 for (
int i = 0; i < RADIO_CTL_NB; i++) {
61 pprz_msg_send_PPM(trans, dev, AC_ID,
75 #if PERIODIC_TELEMETRY
90 _received_frame_handler();
106 ppm_last_pulse_time = ppm_time;
void radio_control_impl_init(void)
Generic transmission transport header.
Periodic telemetry system header (includes downlink utility and generated code).
void ppm_arch_init(void)
Architecture dependant code.
uint16_t ppm_pulses[RADIO_CTL_NB]
#define RssiValid()
RssiValid test macro.
static bool_t ppm_data_valid
value send_ppm(value unit)
#define RC_PPM_TICKS_OF_USEC(_v)
On tiny (and booz) the ppm counter is running at the same speed as the systic counter.
void radio_control_impl_event(void(*_received_frame_handler)(void))
RC event function with handler callback.
volatile bool_t ppm_frame_available
#define DefaultPeriodic
Set default periodic telemetry.
struct RadioControl radio_control
#define USEC_OF_RC_PPM_TICKS(_v)
static const struct usb_device_descriptor dev
static uint32_t ppm_last_pulse_time
uint8_t time_since_last_frame
static uint8_t ppm_cur_pulse
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
void ppm_decode_frame(uint32_t ppm_time)
Decode a PPM frame.