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"
80 float distance __attribute__((unused)))
115 #if OBJECT_TRACKING_DEBUG
Main include for ABI (AirBorneInterface).
Event structure to store callbacks in a linked list.
Common code for AP and FBW telemetry.
#define FLOAT_ANGLE_NORMALIZE(_a)
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
#define NAVIGATION_FREQUENCY
Default fixedwing navigation frequency.
#define OBJECT_TRACKING_SEARCH_RATE
void object_tracking_init(void)
init function
#define OBJECT_TRACKING_ID
float object_tracking_search_rate
max turn rate in search mode in rad/s
#define OBJECT_TRACKING_TIMEOUT
float object_tracking_rate
max turn rate in control mode in rad/s
#define OBJECT_TRACKING_RATE
static uint8_t object_frame
static float object_height
void object_tracking_run(void)
run function
static const float nav_dt
static void get_object(uint8_t sender_id, uint32_t id, uint8_t frame, float bearing, float height, float distance)
static float object_bearing
struct RotorcraftNavigation nav
Rotorcraft navigation functions.
float heading
heading setpoint (in radians)
#define NormCourseRad(x)
Normalize a rad angle between 0 and 2*PI.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.