Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
photogrammetry_calculator.h File Reference

Add to airframe file: More...

+ Include dependency graph for photogrammetry_calculator.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define photogrammetry_calculator_UpdateSideLap(X)
 
#define photogrammetry_calculator_UpdateOverLap(X)
 
#define photogrammetry_calculator_UpdateResolution(X)
 
#define PhotogrammetryCalculatorPolygonSurvey(_WP, _COUNT)
 
#define PhotogrammetryCalculatorPolygonSurveyADV(_WP, _COUNT)
 

Functions

void init_photogrammetry_calculator (void)
 
void photogrammetry_calculator_update (void)
 

Variables

float photogrammetry_sweep_angle
 
int photogrammetry_sidestep
 
int photogrammetry_triggerstep
 
int photogrammetry_height
 
int photogrammetry_height_min
 
int photogrammetry_height_max
 
int photogrammetry_radius_min
 
int photogrammetry_sidelap
 
int photogrammetry_overlap
 
int photogrammetry_resolution
 

Detailed Description

Add to airframe file:

<section name="Photogrammetry" prefix="PHOTOGRAMMETRY_">

<define name="FOCAL_LENGTH" value="35" unit="mm"> <define name="SENSOR_WIDTH" value="24" unit="mm"> <define name="SENSOR_HEIGHT" value="13.5" unit="mm"> <define name="PIXELS_WIDTH" value="1024" unit="">

<define name="HEIGHT_MIN" value="35" unit="m"/>
<define name="HEIGHT_MAX" value="500" unit="m"/>
<define name="RADIUS_MIN" value="70" unit="m"/>

</section>

<modules> <load name="photogrammetry_calculator.xml"> </modules>

Add to flightplan or airframe file:

Add to flightplan

<header> #define PHOTOGRAMMETRY_SWEEP_ANGLE 53 // Degrees from the North #define PHOTOGRAMMETRY_OVERLAP 50 // 1-99 Procent #define PHOTOGRAMMETRY_SIDELAP 50 // 1-99 Procent #define PHOTOGRAMMETRY_RESOLUTION 80 // mm pixel projection size </header>

<block group="survey" name="Initialize Poly Survey 56789" strip_button="Survey5678" strip_icon="survey.png">
  <call fun="PhotogrammetryCalculatorPolygonSurvey(WP_5, 5)"/>
  <call fun="PolygonSurvey()"/>
</block>
<block group="survey" name="Initialize ADV Poly 1234 Survey" strip_button="SurveyADV" strip_icon="survey.png">
  <call fun="PhotogrammetryCalculatorPolygonSurveyADV(WP_1, 4)"/>
  <call fun="poly_survey_adv()"/>
</block>

Definition in file photogrammetry_calculator.h.

Macro Definition Documentation

#define photogrammetry_calculator_UpdateOverLap (   X)
Value:

Definition at line 110 of file photogrammetry_calculator.h.

#define photogrammetry_calculator_UpdateResolution (   X)
Value:

Definition at line 115 of file photogrammetry_calculator.h.

#define photogrammetry_calculator_UpdateSideLap (   X)
Value:

Definition at line 105 of file photogrammetry_calculator.h.

#define PhotogrammetryCalculatorPolygonSurvey (   _WP,
  _COUNT 
)
Value:
{ \
WaypointAlt(_WP) = photogrammetry_height + GROUND_ALT; \
int _ang = 90 - DegOfRad(photogrammetry_sweep_angle); \
if (_ang > 90) _ang -= 180; if (_ang < -90) _ang += 180; \
InitializePolygonSurvey((_WP), (_COUNT), 2*photogrammetry_sidestep, _ang); \
}
int photogrammetry_sidestep
int photogrammetry_height
float photogrammetry_sweep_angle
bool_t InitializePolygonSurvey(uint8_t EntryWP, uint8_t Size, float sw, float Orientation)
Definition: OSAMNav.c:351

Definition at line 121 of file photogrammetry_calculator.h.

#define PhotogrammetryCalculatorPolygonSurveyADV (   _WP,
  _COUNT 
)
Value:
{ \
}
int photogrammetry_radius_min
int photogrammetry_sidestep
bool_t init_poly_survey_adv(uint8_t first_wp, uint8_t size, float angle, float sweep_width, float shot_dist, float min_rad, float altitude)
initializes the variables needed for the survey to start first_wp : the first Waypoint of the polygon...
int photogrammetry_height
int photogrammetry_triggerstep
float photogrammetry_sweep_angle

Definition at line 128 of file photogrammetry_calculator.h.

Function Documentation

void photogrammetry_calculator_update ( void  )

Variable Documentation

int photogrammetry_height

Definition at line 49 of file photogrammetry_calculator.c.

Referenced by photogrammetry_calculator_update().

int photogrammetry_height_max
int photogrammetry_height_min
int photogrammetry_overlap
int photogrammetry_radius_min

Definition at line 59 of file photogrammetry_calculator.c.

Referenced by init_photogrammetry_calculator().

int photogrammetry_resolution
int photogrammetry_sidelap
int photogrammetry_sidestep

Definition at line 47 of file photogrammetry_calculator.c.

Referenced by photogrammetry_calculator_update().

float photogrammetry_sweep_angle

Definition at line 45 of file photogrammetry_calculator.c.

Referenced by init_photogrammetry_calculator().

int photogrammetry_triggerstep

Definition at line 48 of file photogrammetry_calculator.c.

Referenced by photogrammetry_calculator_update().