Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
Go to the source code of this file.
Functions | |
bool_t | nav_survey_poly_setup (uint8_t FirstWP, uint8_t Size, float Sweep, float Orientation) |
Setup polygon survey. More... | |
bool_t | nav_survey_poly_setup_towards (uint8_t FirstWP, uint8_t Size, float Sweep, int SecondWP) |
Setup "dynamic" polygon survey with sweep orientation towards a waypoint. More... | |
bool_t | nav_survey_poly_run (void) |
Run polygon survey. More... | |
Variables | |
uint8_t | Poly_Size |
float | Poly_Distance |
uint16_t | PolySurveySweepNum |
uint16_t | PolySurveySweepBackNum |
bool_t nav_survey_poly_run | ( | void | ) |
Run polygon survey.
Definition at line 316 of file nav_survey_poly_rotorcraft.c.
References CSurveyStatus, dc_distance_interval, dc_send_command(), DC_SHOOT, dSweep, EdgeMaxY, EdgeMinY, Edges, Entry, ENU_BFP_OF_REAL, EvaluateLineForX(), FALSE, horizontal_mode, HORIZONTAL_MODE_ROUTE, Init, LINE_START_FUNCTION, LINE_STOP_FUNCTION, MaxY, nav_approaching_from(), nav_init_stage(), nav_route(), navigation_target, PolySurveySweepNum, RotateAndTranslateToWorld(), SmallestCorner, stateGetPositionEnu_f(), survey_to_i, SurveyEntry, SurveyEntryWP, SurveyFromWP, SurveySize, SurveyTheta, SurveyToWP, Sweep, TRUE, Turn, VECT3_COPY, waypoints, Point2D::x, EnuCoor_f::x, Point2D::y, EnuCoor_f::y, and EnuCoor_f::z.
Setup polygon survey.
FirstWP | first waypoint/corner of the polygon |
Size | number of waypoints/corners used to define the polygon |
Sweep | distance between scan lines |
Orientation | angle of scan lines in degrees (CCW, east) |
Definition at line 131 of file nav_survey_poly_rotorcraft.c.
References Line::b, CSurveyStatus, dSweep, EdgeMaxY, EdgeMinY, Edges, Entry, EvaluateLineForX(), FALSE, FindInterceptOfTwoLines(), Init, LINE_STOP_FUNCTION, Line::m, MaxFloat, MaxY, nav_set_heading_deg(), NavVerticalAltitudeMode, POLYSURVEY_ENTRY_DISTANCE, PolySurveySweepBackNum, PolySurveySweepNum, SmallestCorner, SurveyEntry, SurveyEntryWP, SurveyFromWP, SurveySize, SurveyTheta, SurveyToWP, TranslateAndRotateFromWorld(), TRUE, waypoints, point::x, Point2D::x, EnuCoor_f::x, point::y, Point2D::y, and EnuCoor_f::y.
Referenced by nav_survey_poly_setup_towards().
Setup "dynamic" polygon survey with sweep orientation towards a waypoint.
Computes the sweep orientation angle from the line FirstWP-SecondWP. If you pass zero for Size and/or Sweep it will use the global Poly_Size and Poly_Sweep variables respectively (which can be changed via telemetry/settings).
FirstWP | first waypoint/corner of the polygon |
Size | number of waypoints/corners used to define the polygon, if zero uses Poly_Size |
Sweep | distance between scan lines, if zero uses Poly_Distance |
SecondWP | second waypoint towards which the sweep orientation is computed |
Definition at line 69 of file nav_survey_poly_rotorcraft.c.
References nav_survey_poly_setup(), Poly_Distance, Poly_Size, waypoints, point::x, and point::y.
float Poly_Distance |
Definition at line 66 of file nav_survey_poly_rotorcraft.c.
Referenced by nav_survey_poly_setup_towards().
uint8_t Poly_Size |
Definition at line 70 of file nav_survey_poly_osam.c.
Referenced by nav_survey_poly_osam_setup_towards(), and nav_survey_poly_setup_towards().
uint16_t PolySurveySweepBackNum |
Definition at line 127 of file nav_survey_poly_osam.c.
Referenced by nav_survey_poly_osam_run(), nav_survey_poly_osam_setup(), and nav_survey_poly_setup().
uint16_t PolySurveySweepNum |
Definition at line 126 of file nav_survey_poly_osam.c.
Referenced by nav_survey_poly_osam_run(), nav_survey_poly_osam_setup(), nav_survey_poly_run(), and nav_survey_poly_setup().