Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Rotorcraft navigation functions. More...
#include "std.h"
#include "math/pprz_geodetic_int.h"
#include "subsystems/navigation/waypoints.h"
#include "subsystems/navigation/common_flight_plan.h"
Go to the source code of this file.
Macros | |
#define | NAV_FREQ 16 |
#define | HORIZONTAL_MODE_WAYPOINT 0 |
#define | HORIZONTAL_MODE_ROUTE 1 |
#define | HORIZONTAL_MODE_CIRCLE 2 |
#define | HORIZONTAL_MODE_ATTITUDE 3 |
#define | VERTICAL_MODE_MANUAL 0 |
#define | VERTICAL_MODE_CLIMB 1 |
#define | VERTICAL_MODE_ALT 2 |
#define | CARROT 0 |
default approaching_time for a wp More... | |
#define | NavKillThrottle() ({ if (autopilot_mode == AP_MODE_NAV) { autopilot_set_motors_on(FALSE); } FALSE; }) |
#define | NavResurrect() ({ if (autopilot_mode == AP_MODE_NAV) { autopilot_set_motors_on(TRUE); } FALSE; }) |
#define | NavSetGroundReferenceHere() ({ nav_reset_reference(); FALSE; }) |
#define | NavSetAltitudeReferenceHere() ({ nav_reset_alt(); FALSE; }) |
#define | NavSetWaypointHere(_wp) ({ waypoint_set_here_2d(_wp); FALSE; }) |
#define | NavCopyWaypoint(_wp1, _wp2) ({ waypoint_copy(_wp1, _wp2); FALSE; }) |
#define | NavCopyWaypointPositionOnly(_wp1, _wp2) ({ waypoint_position_copy(_wp1, _wp2); FALSE; }) |
#define | NormCourse(x) |
Normalize a degree angle between 0 and 359. More... | |
#define | NavGotoWaypoint(_wp) |
#define | NavCircleWaypoint(_center, _radius) |
#define | NavCircleCount() ((float)abs(nav_circle_radians) / INT32_ANGLE_2_PI) |
#define | NavCircleQdr() ({ int32_t qdr = INT32_DEG_OF_RAD(INT32_ANGLE_2_PI_2 - nav_circle_qdr) >> INT32_ANGLE_FRAC; NormCourse(qdr); qdr; }) |
#define | NavQdrCloseTo(x) {} |
True if x (in degrees) is close to the current QDR (less than 10 degrees) More... | |
#define | NavCourseCloseTo(x) {} |
#define | NavSegment(_start, _end) |
#define | NavGlide(_last_wp, _wp) |
Nav glide routine. More... | |
#define | NavApproaching(wp, time) nav_approaching_from(&waypoints[wp].enu_i, NULL, time) |
#define | NavApproachingFrom(wp, from, time) nav_approaching_from(&waypoints[wp].enu_i, &waypoints[from].enu_i, time) |
#define | NavCheckWaypointTime(wp, time) nav_check_wp_time(&waypoints[wp].enu_i, time) |
#define | NavVerticalAutoThrottleMode(_pitch) |
Set the climb control to auto-throttle with the specified pitch pre-command. More... | |
#define | NavVerticalAutoPitchMode(_throttle) {} |
Set the climb control to auto-pitch with the specified throttle pre-command. More... | |
#define | NavVerticalAltitudeMode(_alt, _pre_climb) |
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command. More... | |
#define | NavVerticalClimbMode(_climb) |
Set the vertical mode to climb control with the specified climb setpoint. More... | |
#define | NavVerticalThrottleMode(_throttle) |
Set the vertical mode to fixed throttle with the specified setpoint. More... | |
#define | NavHeading nav_set_heading_rad |
Set the heading of the rotorcraft, nothing else. More... | |
#define | NavAttitude(_roll) |
#define | NavStartDetectGround() ({ autopilot_detect_ground_once = TRUE; FALSE; }) |
#define | NavDetectGround() nav_detect_ground() |
#define | nav_IncreaseShift(x) {} |
#define | nav_SetNavRadius(x) {} |
#define | navigation_SetFlightAltitude(x) |
#define | GetPosX() (stateGetPositionEnu_f()->x) |
#define | GetPosY() (stateGetPositionEnu_f()->y) |
#define | GetPosAlt() (stateGetPositionEnu_f()->z+state.ned_origin_f.hmsl) |
#define | GetAltRef() (state.ned_origin_f.hmsl) |
Functions | |
void | nav_init (void) |
Periodic telemetry. More... | |
void | nav_run (void) |
float | get_dist2_to_waypoint (uint8_t wp_id) |
Returns squared horizontal distance to given waypoint. More... | |
float | get_dist2_to_point (struct EnuCoor_i *p) |
Returns squared horizontal distance to given point. More... | |
void | compute_dist2_to_home (void) |
Computes squared distance to the HOME waypoint potentially sets too_far_from_home. More... | |
void | nav_home (void) |
Home mode navigation (circle around HOME) More... | |
unit_t | nav_reset_reference (void) |
Reset the geographic reference to the current GPS fix. More... | |
unit_t | nav_reset_alt (void) |
Reset the altitude reference to the current GPS alt. More... | |
void | nav_periodic_task (void) |
Navigation main: call to the code generated from the XML flight plan. More... | |
bool_t | nav_detect_ground (void) |
bool_t | nav_is_in_flight (void) |
void | set_exception_flag (uint8_t flag_num) |
bool_t | nav_set_heading_rad (float rad) |
Set nav_heading in degrees. More... | |
bool_t | nav_set_heading_deg (float deg) |
Set nav_heading in degrees. More... | |
bool_t | nav_set_heading_towards (float x, float y) |
Set heading to point towards x,y position in local coordinates. More... | |
bool_t | nav_set_heading_towards_waypoint (uint8_t wp) |
Set heading in the direction of a waypoint. More... | |
bool_t | nav_set_heading_current (void) |
Set heading to the current yaw angle. More... | |
void | nav_circle (struct EnuCoor_i *wp_center, int32_t radius) |
void | nav_route (struct EnuCoor_i *wp_start, struct EnuCoor_i *wp_end) |
bool_t | nav_approaching_from (struct EnuCoor_i *wp, struct EnuCoor_i *from, int16_t approaching_time) |
Proximity tests on approaching a wp. More... | |
bool_t | nav_check_wp_time (struct EnuCoor_i *wp, uint16_t stay_time) |
Check the time spent in a radius of 'ARRIVED_AT_WAYPOINT' around a wp. More... | |
void | navigation_update_wp_from_speed (uint8_t wp, struct Int16Vect3 speed_sp, int16_t heading_rate_sp) |
Rotorcraft navigation functions.
Definition in file navigation.h.
#define CARROT 0 |
default approaching_time for a wp
Definition at line 101 of file navigation.h.
Referenced by fly_to_xy(), mission_nav_path(), mission_nav_segment(), mission_nav_wp(), nav_anemotaxis(), nav_circle_XY(), nav_eight(), nav_line_border_run(), nav_line_run(), nav_oval(), nav_route_xy(), nav_survey_disc_run(), nav_survey_polygon_run(), nav_survey_zamboni_run(), nav_vertical_raster_run(), potential_task(), and snav_route().
#define GetAltRef | ( | ) | (state.ned_origin_f.hmsl) |
Definition at line 220 of file navigation.h.
#define GetPosAlt | ( | ) | (stateGetPositionEnu_f()->z+state.ned_origin_f.hmsl) |
Definition at line 219 of file navigation.h.
#define GetPosX | ( | ) | (stateGetPositionEnu_f()->x) |
Definition at line 217 of file navigation.h.
#define GetPosY | ( | ) | (stateGetPositionEnu_f()->y) |
Definition at line 218 of file navigation.h.
#define HORIZONTAL_MODE_ATTITUDE 3 |
Definition at line 54 of file navigation.h.
Referenced by guidance_h_run().
#define HORIZONTAL_MODE_CIRCLE 2 |
Definition at line 53 of file navigation.h.
#define HORIZONTAL_MODE_ROUTE 1 |
Definition at line 52 of file navigation.h.
#define HORIZONTAL_MODE_WAYPOINT 0 |
Definition at line 51 of file navigation.h.
#define NAV_FREQ 16 |
Definition at line 37 of file navigation.h.
Referenced by nav_periodic_task(), and navigation_update_wp_from_speed().
#define nav_IncreaseShift | ( | x | ) | {} |
Definition at line 206 of file navigation.h.
#define nav_SetNavRadius | ( | x | ) | {} |
Definition at line 208 of file navigation.h.
#define NavApproaching | ( | wp, | |
time | |||
) | nav_approaching_from(&waypoints[wp].enu_i, NULL, time) |
Definition at line 159 of file navigation.h.
#define NavApproachingFrom | ( | wp, | |
from, | |||
time | |||
) | nav_approaching_from(&waypoints[wp].enu_i, &waypoints[from].enu_i, time) |
Definition at line 160 of file navigation.h.
#define NavAttitude | ( | _roll | ) |
Definition at line 198 of file navigation.h.
#define NavCheckWaypointTime | ( | wp, | |
time | |||
) | nav_check_wp_time(&waypoints[wp].enu_i, time) |
Definition at line 164 of file navigation.h.
#define NavCircleCount | ( | ) | ((float)abs(nav_circle_radians) / INT32_ANGLE_2_PI) |
Definition at line 135 of file navigation.h.
#define NavCircleQdr | ( | ) | ({ int32_t qdr = INT32_DEG_OF_RAD(INT32_ANGLE_2_PI_2 - nav_circle_qdr) >> INT32_ANGLE_FRAC; NormCourse(qdr); qdr; }) |
Definition at line 136 of file navigation.h.
#define NavCircleWaypoint | ( | _center, | |
_radius | |||
) |
Definition at line 130 of file navigation.h.
#define NavCopyWaypoint | ( | _wp1, | |
_wp2 | |||
) | ({ waypoint_copy(_wp1, _wp2); FALSE; }) |
Definition at line 112 of file navigation.h.
#define NavCopyWaypointPositionOnly | ( | _wp1, | |
_wp2 | |||
) | ({ waypoint_position_copy(_wp1, _wp2); FALSE; }) |
Definition at line 113 of file navigation.h.
#define NavCourseCloseTo | ( | x | ) | {} |
Definition at line 140 of file navigation.h.
#define NavDetectGround | ( | ) | nav_detect_ground() |
Definition at line 204 of file navigation.h.
#define NavGlide | ( | _last_wp, | |
_wp | |||
) |
Nav glide routine.
Definition at line 150 of file navigation.h.
#define NavGotoWaypoint | ( | _wp | ) |
Definition at line 122 of file navigation.h.
#define NavHeading nav_set_heading_rad |
Set the heading of the rotorcraft, nothing else.
Definition at line 196 of file navigation.h.
#define navigation_SetFlightAltitude | ( | x | ) |
Definition at line 211 of file navigation.h.
#define NavKillThrottle | ( | ) | ({ if (autopilot_mode == AP_MODE_NAV) { autopilot_set_motors_on(FALSE); } FALSE; }) |
Definition at line 104 of file navigation.h.
#define NavQdrCloseTo | ( | x | ) | {} |
True if x (in degrees) is close to the current QDR (less than 10 degrees)
Definition at line 139 of file navigation.h.
#define NavResurrect | ( | ) | ({ if (autopilot_mode == AP_MODE_NAV) { autopilot_set_motors_on(TRUE); } FALSE; }) |
Definition at line 105 of file navigation.h.
#define NavSegment | ( | _start, | |
_end | |||
) |
Definition at line 144 of file navigation.h.
#define NavSetAltitudeReferenceHere | ( | ) | ({ nav_reset_alt(); FALSE; }) |
Definition at line 109 of file navigation.h.
#define NavSetGroundReferenceHere | ( | ) | ({ nav_reset_reference(); FALSE; }) |
Definition at line 108 of file navigation.h.
#define NavSetWaypointHere | ( | _wp | ) | ({ waypoint_set_here_2d(_wp); FALSE; }) |
Definition at line 111 of file navigation.h.
Referenced by stereocam_droplet_periodic().
#define NavStartDetectGround | ( | ) | ({ autopilot_detect_ground_once = TRUE; FALSE; }) |
Definition at line 203 of file navigation.h.
#define NavVerticalAltitudeMode | ( | _alt, | |
_pre_climb | |||
) |
Set the vertical mode to altitude control with the specified altitude setpoint and climb pre-command.
Definition at line 178 of file navigation.h.
#define NavVerticalAutoPitchMode | ( | _throttle | ) | {} |
Set the climb control to auto-pitch with the specified throttle pre-command.
Definition at line 174 of file navigation.h.
#define NavVerticalAutoThrottleMode | ( | _pitch | ) |
Set the climb control to auto-throttle with the specified pitch pre-command.
Definition at line 168 of file navigation.h.
#define NavVerticalClimbMode | ( | _climb | ) |
Set the vertical mode to climb control with the specified climb setpoint.
Definition at line 184 of file navigation.h.
#define NavVerticalThrottleMode | ( | _throttle | ) |
Set the vertical mode to fixed throttle with the specified setpoint.
Definition at line 190 of file navigation.h.
#define NormCourse | ( | x | ) |
Normalize a degree angle between 0 and 359.
Definition at line 116 of file navigation.h.
#define VERTICAL_MODE_ALT 2 |
Definition at line 71 of file navigation.h.
Referenced by guidance_v_run(), nav_home(), and nav_init().
#define VERTICAL_MODE_CLIMB 1 |
Definition at line 70 of file navigation.h.
Referenced by guidance_v_run().
#define VERTICAL_MODE_MANUAL 0 |
Definition at line 69 of file navigation.h.
Referenced by guidance_v_run().
void compute_dist2_to_home | ( | void | ) |
Computes squared distance to the HOME waypoint potentially sets too_far_from_home.
Computes squared distance to the HOME waypoint potentially sets too_far_from_home.
Updates dist2_to_home and potentially sets too_far_from_home
Definition at line 502 of file navigation.c.
float get_dist2_to_point | ( | struct EnuCoor_i * | p | ) |
Returns squared horizontal distance to given point.
Definition at line 484 of file navigation.c.
References POS_FLOAT_OF_BFP, stateGetPositionEnu_f(), FloatVect2::x, EnuCoor_f::x, EnuCoor_i::x, FloatVect2::y, EnuCoor_f::y, and EnuCoor_i::y.
Referenced by get_dist2_to_waypoint(), nav_circle(), and nav_route().
float get_dist2_to_waypoint | ( | uint8_t | wp_id | ) |
Returns squared horizontal distance to given waypoint.
Definition at line 494 of file navigation.c.
References get_dist2_to_point(), and waypoints.
Referenced by compute_dist2_to_home().
bool_t nav_approaching_from | ( | struct EnuCoor_i * | wp, |
struct EnuCoor_i * | from, | ||
int16_t | approaching_time | ||
) |
Proximity tests on approaching a wp.
Definition at line 303 of file navigation.c.
References ARRIVED_AT_WAYPOINT, BFP_OF_REAL, FALSE, INT32_POS_FRAC, INT32_SPEED_FRAC, int32_vect2_norm(), INT32_VECT2_RSHIFT, stateGetPositionEnu_i(), stateGetSpeedEnu_i(), TRUE, VECT2_DIFF, VECT2_SMUL, VECT2_SUM, Int32Vect2::x, and Int32Vect2::y.
Referenced by mission_nav_path(), mission_nav_segment(), mission_nav_wp(), nav_survey_poly_run(), and nav_survey_rectangle_rotorcraft_run().
Check the time spent in a radius of 'ARRIVED_AT_WAYPOINT' around a wp.
Definition at line 346 of file navigation.c.
References ARRIVED_AT_WAYPOINT, autopilot_flight_time, BFP_OF_REAL, FALSE, INT32_POS_FRAC, int32_vect2_norm(), INT32_VECT2_RSHIFT, INT_VECT3_ZERO, stateGetPositionEnu_i(), TRUE, VECT2_DIFF, EnuCoor_i::x, and EnuCoor_i::y.
Referenced by mission_nav_path(), mission_nav_segment(), and mission_nav_wp().
Definition at line 230 of file navigation.c.
References CARROT_DIST, dist2_to_wp, get_dist2_to_point(), horizontal_mode, HORIZONTAL_MODE_CIRCLE, INT32_ANGLE_FRAC, INT32_ANGLE_NORMALIZE, INT32_ANGLE_PI, INT32_ANGLE_PI_4, int32_atan2(), INT32_TRIG_FRAC, INT32_VECT2_RSHIFT, nav_circle_center, nav_circle_qdr, nav_circle_radians, nav_circle_radius, navigation_target, PPRZ_ITRIG_COS, PPRZ_ITRIG_SIN, radius, stateGetPositionEnu_i(), VECT2_ASSIGN, VECT2_COPY, VECT2_DIFF, VECT2_SUM, Int32Vect2::x, and Int32Vect2::y.
Referenced by mission_nav_circle().
bool_t nav_detect_ground | ( | void | ) |
Definition at line 455 of file navigation.c.
References autopilot_ground_detected, FALSE, and TRUE.
void nav_home | ( | void | ) |
Home mode navigation (circle around HOME)
Home mode navigation (circle around HOME)
Nominal speed
Nominal speed
Definition at line 434 of file nav.c.
References compute_dist2_to_home(), dist2_to_home, dist2_to_wp, FAILSAFE_HOME_RADIUS, ground_alt, horizontal_mode, HORIZONTAL_MODE_WAYPOINT, nav_altitude, nav_flight_altitude, nav_run(), nav_set_altitude(), NavCircleWaypoint, navigation_target, v_ctl_mode, V_CTL_MODE_AUTO_ALT, VECT3_COPY, vertical_mode, VERTICAL_MODE_ALT, and waypoints.
Referenced by autopilot_periodic(), and navigation_task().
void nav_init | ( | void | ) |
Periodic telemetry.
Navigation Initialisation
Definition at line 530 of file nav.c.
References DEFAULT_CIRCLE_RADIUS, DefaultPeriodic, dist2_to_home, dist2_to_wp, FALSE, flight_altitude, ground_alt, horizontal_mode, HORIZONTAL_MODE_WAYPOINT, nav_altitude, nav_block, nav_climb, nav_climb_vspeed, NAV_CLIMB_VSPEED, nav_descend_vspeed, NAV_DESCEND_VSPEED, nav_flight_altitude, NAV_GLIDE_PITCH_TRIM, nav_heading, nav_leg_length, nav_leg_progress, NAV_MODE_COURSE, nav_pitch, nav_radius, nav_roll, nav_stage, nav_throttle, navigation_carrot, navigation_target, POS_BFP_OF_REAL, register_periodic_telemetry(), send_survey(), too_far_from_home, VECT3_COPY, vertical_mode, VERTICAL_MODE_ALT, waypoints, and waypoints_init().
Referenced by autopilot_init(), and init_ap().
bool_t nav_is_in_flight | ( | void | ) |
Definition at line 462 of file navigation.c.
References autopilot_in_flight.
Referenced by follow_me_periodic().
void nav_periodic_task | ( | void | ) |
Navigation main: call to the code generated from the XML flight plan.
Definition at line 450 of file nav.c.
References block_time, compute_dist2_to_home(), dist2_to_wp, FALSE, h_ctl_course_pre_bank, NAV_FREQ, nav_run(), nav_set_altitude(), nav_survey_active, stage_time, V_CTL_AUTO_THROTTLE_STANDARD, v_ctl_auto_throttle_submode, v_ctl_mode, and V_CTL_MODE_AUTO_CLIMB.
Referenced by autopilot_periodic(), and navigation_task().
unit_t nav_reset_alt | ( | void | ) |
Reset the altitude reference to the current GPS alt.
Definition at line 400 of file navigation.c.
unit_t nav_reset_reference | ( | void | ) |
Reset the geographic reference to the current GPS fix.
Definition at line 392 of file navigation.c.
Definition at line 276 of file navigation.c.
References CARROT_DIST, dist2_to_wp, get_dist2_to_point(), horizontal_mode, HORIZONTAL_MODE_ROUTE, INT32_POS_FRAC, int32_sqrt(), INT32_VECT2_RSHIFT, Max, nav_leg_length, nav_leg_progress, nav_segment_end, navigation_target, stateGetPositionEnu_i(), VECT2_COPY, VECT2_DIFF, VECT2_SMUL, VECT2_SUM, Int32Vect2::x, and Int32Vect2::y.
Referenced by mission_nav_path(), mission_nav_segment(), nav_survey_poly_run(), and nav_survey_rectangle_rotorcraft_run().
void nav_run | ( | void | ) |
Definition at line 217 of file navigation.c.
References nav_advance_carrot(), nav_set_altitude(), navigation_carrot, navigation_target, and VECT2_COPY.
Referenced by nav_home(), and nav_periodic_task().
bool_t nav_set_heading_current | ( | void | ) |
Set heading to the current yaw angle.
Definition at line 545 of file navigation.c.
References FALSE, nav_heading, Int32Eulers::psi, and stateGetNedToBodyEulers_i().
bool_t nav_set_heading_deg | ( | float | deg | ) |
Set nav_heading in degrees.
Definition at line 517 of file navigation.c.
References nav_set_heading_rad().
Referenced by nav_survey_poly_setup(), and nav_survey_rectangle_rotorcraft_setup().
bool_t nav_set_heading_rad | ( | float | rad | ) |
Set nav_heading in degrees.
Definition at line 509 of file navigation.c.
References ANGLE_BFP_OF_REAL, FALSE, INT32_COURSE_NORMALIZE, and nav_heading.
Referenced by nav_set_heading_deg(), and stereocam_droplet_periodic().
bool_t nav_set_heading_towards | ( | float | x, |
float | y | ||
) |
Set heading to point towards x,y position in local coordinates.
Definition at line 523 of file navigation.c.
References ANGLE_BFP_OF_REAL, FALSE, nav_heading, stateGetPositionEnu_f(), VECT2_DIFF, VECT2_NORM2, FloatVect2::x, and FloatVect2::y.
Referenced by nav_set_heading_towards_waypoint().
bool_t nav_set_heading_towards_waypoint | ( | uint8_t | wp | ) |
Set heading in the direction of a waypoint.
Definition at line 539 of file navigation.c.
References nav_set_heading_towards(), WaypointX, and WaypointY.
void navigation_update_wp_from_speed | ( | uint8_t | wp, |
struct Int16Vect3 | speed_sp, | ||
int16_t | heading_rate_sp | ||
) |
Definition at line 431 of file navigation.c.
References DefaultChannel, DefaultDevice, INT32_COURSE_NORMALIZE, INT32_POS_FRAC, INT32_SPEED_FRAC, INT32_TRIG_FRAC, INT32_VECT3_RSHIFT, NAV_FREQ, nav_heading, PPRZ_ITRIG_COS, PPRZ_ITRIG_SIN, VECT3_SDIV, waypoints, point::x, Int32Vect3::x, point::y, Int32Vect3::y, and Int32Vect3::z.
Referenced by vi_update_wp().
void set_exception_flag | ( | uint8_t | flag_num | ) |
float dist2_to_home |
squared distance to home waypoint
Definition at line 66 of file navigation.c.
float dist2_to_wp |
squared distance to next waypoint
Definition at line 71 of file navigation.c.
bool_t exception_flag[10] |
Definition at line 69 of file navigation.c.
float failsafe_mode_dist2 |
maximum squared distance to home wp before going to failsafe mode
Definition at line 65 of file navigation.c.
Referenced by autopilot_periodic().
float flight_altitude |
Dynamically adjustable, reset to nav_altitude when it is changing.
Definition at line 73 of file nav.c.
Referenced by formation_flight(), nav_init(), and nav_set_altitude().
uint8_t horizontal_mode |
Definition at line 69 of file nav.c.
Referenced by guidance_h_run(), mission_nav_circle(), mission_nav_path(), mission_nav_segment(), mission_nav_wp(), nav_circle(), nav_home(), nav_init(), nav_init_stage(), nav_route(), nav_survey_poly_run(), nav_survey_rectangle_rotorcraft_run(), and nav_survey_rectangle_rotorcraft_setup().
uint8_t last_wp |
int32_t nav_altitude |
Definition at line 317 of file nav.c.
Referenced by formation_flight(), nav_home(), nav_init(), nav_set_altitude(), start_formation(), stop_formation(), and tcas_periodic_task_4Hz().
struct EnuCoor_i nav_circle_center |
Definition at line 75 of file navigation.c.
Referenced by nav_circle().
int32_t nav_circle_qdr |
Definition at line 76 of file navigation.c.
Referenced by nav_circle().
int32_t nav_circle_radians |
Status on the current circle.
Definition at line 52 of file nav.c.
Referenced by nav_circle(), and nav_init_stage().
int32_t nav_circle_radius |
Definition at line 67 of file nav.c.
Referenced by flight_benchmark_periodic(), and nav_circle().
int32_t nav_climb |
Definition at line 55 of file nav.c.
Referenced by guidance_v_run(), and nav_init().
float nav_climb_vspeed |
Definition at line 86 of file navigation.c.
Referenced by nav_init().
float nav_descend_vspeed |
Definition at line 86 of file navigation.c.
Referenced by nav_init().
int32_t nav_flight_altitude |
Definition at line 103 of file navigation.c.
Referenced by guidance_v_run(), nav_home(), nav_init(), and nav_set_altitude().
int32_t nav_heading |
with INT32_ANGLE_FRAC
Definition at line 84 of file navigation.c.
Referenced by follow_me_periodic(), guidance_h_nav_enter(), guidance_h_run(), nav_init(), nav_set_heading_current(), nav_set_heading_rad(), nav_set_heading_towards(), navigation_update_wp_from_speed(), rotorcraft_cam_periodic(), run_avoid_navigation_onvision(), and stereocam_droplet_periodic().
uint32_t nav_leg_length |
Definition at line 79 of file navigation.c.
Referenced by nav_init(), and nav_route().
int32_t nav_leg_progress |
Definition at line 78 of file navigation.c.
Referenced by nav_init(), and nav_route().
int32_t nav_pitch |
with INT32_ANGLE_FRAC
Definition at line 320 of file nav.c.
Referenced by attitude_loop(), guidance_h_run(), nav_init(), v_ctl_climb_auto_throttle_loop(), v_ctl_climb_loop(), and v_ctl_set_pitch().
float nav_radius |
Definition at line 55 of file nav.c.
Referenced by nav_compute_baseleg(), nav_flower_run(), and nav_init().
int32_t nav_roll |
Definition at line 83 of file navigation.c.
Referenced by guidance_h_run(), and nav_init().
struct EnuCoor_i nav_segment_start nav_segment_end |
Definition at line 74 of file navigation.c.
Referenced by nav_route().
bool_t nav_survey_active |
Definition at line 87 of file nav.c.
Referenced by nav_periodic_task(), nav_survey_rectangle(), nav_survey_rectangle_rotorcraft_run(), and send_survey().
uint32_t nav_throttle |
direct throttle from 0:MAX_PPRZ, used in VERTICAL_MODE_MANUAL
Definition at line 102 of file navigation.c.
Referenced by guidance_v_run(), and nav_init().
struct EnuCoor_i navigation_carrot |
Definition at line 52 of file navigation.c.
Referenced by guidance_h_nav_enter(), guidance_h_run(), nav_advance_carrot(), nav_init(), and nav_run().
struct EnuCoor_i navigation_target |
Definition at line 51 of file navigation.c.
Referenced by mission_nav_wp(), nav_advance_carrot(), nav_circle(), nav_home(), nav_init(), nav_route(), nav_run(), nav_survey_poly_run(), and nav_survey_rectangle_rotorcraft_setup().
bool_t too_far_from_home |
Definition at line 67 of file navigation.c.
uint8_t vertical_mode |
Definition at line 36 of file sim_ap.c.
Referenced by guidance_v_run(), nav_home(), and nav_init().