void downlink_init(void) { downlink.nb_ovrn = 0; downlink.nb_bytes = 0; downlink.nb_msgs = 0; #if defined DATALINK #if DATALINK == PPRZ || DATALINK == SUPERBITRF || DATALINK == W5100 pprz_transport_init(&pprz_tp); #endif #if DATALINK == XBEE xbee_init(); #endif #if DATALINK == W5100 w5100_init(); #endif #endif #if USE_PPRZLOG pprzlog_transport_init(); #endif #if SITL ivy_transport_init(); #endif #if PERIODIC_TELEMETRY register_periodic_telemetry(DefaultPeriodic, "DATALINK_REPORT", send_downlink); #endif }
void intermcu_init(void) { pprz_transport_init(&intermcu_transport); register_periodic_telemetry(DefaultPeriodic, PPRZ_MSG_ID_FBW_STATUS, send_status); }
void intermcu_init(void) { pprz_transport_init(&intermcu_transport); #ifdef BOARD_PX4IO px4bl_tid = sys_time_register_timer(20.0, NULL); #endif }
/* InterMCU initialization */ void telemetry_intermcu_init(void) { // Initialize transport structure pprz_transport_init(&telemetry_intermcu.trans); // Set the link device telemetry_intermcu.dev = &(TELEMETRY_INTERMCU_DEV.device); }
void intermcu_init(void) { pprz_transport_init(&intermcu.transport); #if USE_GPS AbiBindMsgGPS(IMCU_GPS_ID, &gps_ev, gps_cb); #endif #ifdef BOARD_PX4IO px4bl_tid = sys_time_register_timer(10.0, NULL); #endif }
/* Initialize the magneto and pitot */ void mag_pitot_init() { // Initialize transport protocol pprz_transport_init(&mag_pitot.transport); // Set the Imu to Magneto rotation struct FloatEulers imu_to_mag_eulers = {IMU_TO_MAG_PHI, IMU_TO_MAG_THETA, IMU_TO_MAG_PSI}; orientationSetEulers_f(&mag_pitot.imu_to_mag, &imu_to_mag_eulers); #if PERIODIC_TELEMETRY register_periodic_telemetry(DefaultPeriodic, PPRZ_MSG_ID_IMU_MAG_RAW, mag_pitot_raw_downlink); #endif }
void intermcu_init(void) { pprz_transport_init(&intermcu_transport); }
void pprz_dl_init(void) { pprz_transport_init(&pprz_tp); }