|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
25 #include "autopilot_static.h"
28 #define NAV_C // needed to get the nav functions like Inside...
29 #include "generated/flight_plan.h"
31 #define PRINT(string, ...) fprintf(stderr, "[mav_exercise->%s()] " string,__FUNCTION__ , ##__VA_ARGS__)
55 #ifndef ORANGE_AVOIDER_VISUAL_DETECTION_ID
56 #define ORANGE_AVOIDER_VISUAL_DETECTION_ID ABI_BROADCAST
60 int16_t __attribute__((unused)) pixel_x,
int16_t __attribute__((unused)) pixel_y,
61 int16_t __attribute__((unused)) pixel_width,
62 int16_t __attribute__((unused)) pixel_height,
static uint8_t calculateForwards(struct EnuCoor_i *new_coor, float distanceMeters)
#define PRINT(string,...)
#define FLOAT_ANGLE_NORMALIZE(_a)
void mav_exercise_periodic(void)
int16_t obstacle_free_confidence
static struct EnuCoor_i * stateGetPositionEnu_i(void)
Get position in local ENU coordinates (int).
Event structure to store callbacks in a linked list.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
const int16_t max_trajectory_confidence
int32_t nav_heading
with INT32_ANGLE_FRAC
static abi_event color_detection_ev
navigation_state
Camera focal length, in pixels (i.e. distance between camera.
bool autopilot_in_flight(void)
get in_flight flag
uint8_t moveWaypoint(uint8_t waypoint, struct EnuCoor_i *new_coor)
void mav_exercise_init(void)
#define ORANGE_AVOIDER_VISUAL_DETECTION_ID
#define ANGLE_BFP_OF_REAL(_af)
float oa_color_count_frac
void waypoint_move_here_2d(uint8_t wp_id)
void waypoint_move_xy_i(uint8_t wp_id, int32_t x, int32_t y)
uint8_t increase_nav_heading(float incrementDegrees)
uint16_t f
Camera baseline, in meters (i.e. horizontal distance between the two cameras of the stereo setup)
static void color_detection_cb(uint8_t sender_id, int16_t pixel_x, int16_t pixel_y, int16_t pixel_width, int16_t pixel_height, int32_t quality, int16_t extra)
uint8_t moveWaypointForward(uint8_t waypoint, float distanceMeters)
float oob_haeding_increment
#define POS_BFP_OF_REAL(_af)
vector in East North Up coordinates