uint8_t dc_info(void) { #ifdef DOWNLINK_SEND_DC_INFO float course = DegOfRad(stateGetNedToBodyEulers_f()->psi); int16_t mode = dc_autoshoot; uint8_t shutter = dc_autoshoot_period * 10; DOWNLINK_SEND_DC_INFO(DefaultChannel, DefaultDevice, &mode, &stateGetPositionLla_i()->lat, &stateGetPositionLla_i()->lon, &stateGetPositionLla_i()->alt, &course, &dc_photo_nr, &dc_survey_interval, &dc_gps_next_dist, &dc_gps_x, &dc_gps_y, &dc_circle_start_angle, &dc_circle_interval, &dc_circle_last_block, &dc_gps_count, &shutter); #endif return 0; }
uint8_t dc_info(void) { #ifdef DOWNLINK_SEND_DC_INFO float course = DegOfRad(estimator_psi); DOWNLINK_SEND_DC_INFO(DefaultChannel, &dc_autoshoot, &estimator_x, &estimator_y, &course, &dc_buffer, &dc_gps_dist, &dc_gps_next_dist, &dc_gps_x, &dc_gps_y, &dc_circle_start_angle, &dc_circle_interval, &dc_circle_last_block, &dc_gps_count, &dc_autoshoot_quartersec_period); #endif return 0; }