flight_benchmark

Flight benchmark for fixedwing. This module allows a quantitative assessment of a flight. It calculates the sum of squared error of the two-dimensional course (x / y), the altitude and true airspeed. The sum of squared error of the course and altitude were separated, because they are regulated separately, and so they dependent on various parameters. The module was written to optimize the control parameters and has already been used successfully. The measurement is not started until about the variable benchm_go is set to 1. Could also be set from within a flightplan for automated Becnhmarking. The sum of squared error can by reseted by changing the boolean variable benchm_reset to zero. It will turn back to 1 automatically after it has done the reset). This can also be used in a flight plan, which allows a flight plan with auto-reset. So it is possible to fly an oval or a eight figure with a sum of squared error that will be reseted at the very same point of the figure.

Defines

Name

Value

Description

BENCHMARK_AIRSPEED

Add to enable airspeed benchmarking (only with airspeed module)

BENCHMARK_ALTITUDE

Add to enable altitude benchmarking

BENCHMARK_POSITION

Add to enable position (x/y) benchmarking. (shortest error to the path)

BENCHMARK_TOLERANCE_AIRSPEED

0.

define the tolerated value where the sum of squared error won’t change. Set to zero to have no tolerance.

BENCHMARK_TOLERANCE_ALTITUDE

0.

define the tolerated value where the sum of squared error won’t change. Set to zero to have no tolerance.

BENCHMARK_TOLERANCE_POSITION

0.

define the tolerated value where the sum of squared error won’t change. Set to zero to have no tolerance.