18 #ifndef STEREOCAM2STATE_SENDER_ID
19 #define STEREOCAM2STATE_SENDER_ID ABI_BROADCAST
22 #ifndef STEREOCAM2STATE_RECEIVED_DATA_TYPE
23 #define STEREOCAM2STATE_RECEIVED_DATA_TYPE 0
48 #if STEREOCAM2STATE_RECEIVED_DATA_TYPE == 0
70 float vel_x = (
float)vel_x_int /
RES;
71 float vel_y = (float)vel_y_int /
RES;
76 float vel_body_x = - vel_x;
77 float vel_body_y = vel_y;
83 if (!(abs(vel_body_x) > 0.5 || abs(vel_body_x) > 0.5))
97 float dummy_float = 0;
99 DOWNLINK_SEND_OPTIC_FLOW_EST(
DefaultChannel,
DefaultDevice, &fps, &dummy_uint16, &dummy_uint16, &flow_x, &flow_y, &dummy_int16, &dummy_int16,
100 &vel_x, &vel_y,&dummy_float, &dummy_float, &dummy_float);
void stereocam_to_state(void)
Periodic telemetry system header (includes downlink utility and generated code).
Main include for ABI (AirBorneInterface).
void stereo_to_state_init(void)
#define STEREOCAM2STATE_SENDER_ID
void stereo_to_state_periodic(void)
uint8array stereocam_data
#define DefaultChannel
SITL.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.