30 #include "generated/airframe.h"
31 #include "generated/modules.h"
34 #ifndef OBJECT_TRACKING_ID
35 #define OBJECT_TRACKING_ID ABI_BROADCAST
39 #ifndef OBJECT_TRACKING_TIMEOUT
40 #define OBJECT_TRACKING_TIMEOUT 3.0f
44 #ifndef OBJECT_TRACKING_RATE
45 #define OBJECT_TRACKING_RATE RadOfDeg(10)
49 #ifndef OBJECT_TRACKING_SEARCH_RATE
50 #define OBJECT_TRACKING_SEARCH_RATE RadOfDeg(20)
54 #ifndef OBJECT_TRACKING_DEBUG
55 #define OBJECT_TRACKING_DEBUG FALSE
58 #if OBJECT_TRACKING_DEBUG
60 #include "pprzlink/messages.h"
79 uint8_t frame,
float bearing,
float height,
80 float distance __attribute__((unused)))
115 #if OBJECT_TRACKING_DEBUG
#define FLOAT_ANGLE_NORMALIZE(_a)
Event structure to store callbacks in a linked list.
void object_tracking_run(void)
run function
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define OBJECT_TRACKING_RATE
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
float object_tracking_search_rate
max turn rate in search mode in rad/s
void object_tracking_init(void)
init function
Main include for ABI (AirBorneInterface).
#define OBJECT_TRACKING_TIMEOUT
#define ANGLE_FLOAT_OF_BFP(_ai)
static void get_object(uint8_t sender_id, uint32_t id, uint8_t frame, float bearing, float height, float distance)
#define OBJECT_TRACKING_SEARCH_RATE
static uint8_t object_frame
static const float nav_dt
int32_t nav_heading
with INT32_ANGLE_FRAC
static float object_bearing
#define ANGLE_BFP_OF_REAL(_af)
Rotorcraft navigation functions.
static float object_height
#define INT32_COURSE_NORMALIZE(_a)
Common code for AP and FBW telemetry.
#define OBJECT_TRACKING_ID
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
float object_tracking_rate
max turn rate in control mode in rad/s