20 #include "generated/flight_plan.h"
22 #ifndef STEREOCAM_FOLLOW_ME_USE_OPTITRACK
23 #define STEREOCAM_FOLLOW_ME_USE_OPTITRACK FALSE
27 #define HEADING_CHANGE_PER_MEASUREMENT 260
28 #define CENTER_IMAGE_HOR 65
29 #define MAXIMUM_ALTITUDE_FOLLOWING 3.0
30 #define MINIMUM_ALTITUDE_FOLLOWING 1.0
44 void changeRollYawPhase(
int *phaseCounterArg,
int *isRollPhaseArg,
int *isYawPhaseArg);
49 if (*isRollPhaseArg) {
67 *heading = *heading + increment;
86 float heading_change = 0.0;
90 heading_change = 0.25;
95 heading_change = -0.25;
100 heading_change = 0.0;
104 heading_change = 0.0;
132 #if STEREOCAM_FOLLOW_ME_USE_OPTITRACK
int amountOfRollPhaseTime
Rotorcraft navigation functions.
#define MINIMUM_ALTITUDE_FOLLOWING
Periodic telemetry system header (includes downlink utility and generated code).
void increase_nav_heading(int32_t *heading, int32_t increment)
Increases the NAV heading.
void waypoint_set_alt(uint8_t wp_id, float alt)
Set altitude of waypoint in meters (above reference)
#define HEADING_CHANGE_PER_MEASUREMENT
interface to the TU Delft serial stereocam
void follow_me_periodic()
uint8array stereocam_data
bool nav_is_in_flight(void)
void changeRollYawPhase(int *phaseCounterArg, int *isRollPhaseArg, int *isYawPhaseArg)
#define MAXIMUM_ALTITUDE_FOLLOWING
API to get/set the generic vehicle states.
#define STEREOCAM_FOLLOW_ME_USE_OPTITRACK
int32_t nav_heading
with INT32_ANGLE_FRAC