mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 23:46:04 +08:00
Use nominal throttle value is available (#1917)
This commit is contained in:
committed by
Gautier Hattenberger
parent
44f15c363d
commit
bf06b11860
@@ -36,12 +36,17 @@
|
||||
/** Initial hover throttle as factor of MAX_PPRZ.
|
||||
* Should be a value between #GUIDANCE_V_ADAPT_MIN_HOVER_THROTTLE and
|
||||
* #GUIDANCE_V_ADAPT_MAX_HOVER_THROTTLE.
|
||||
* It is better to start with low thrust and let it rise as the adaptive filter
|
||||
* finds the vehicle needs more thrust.
|
||||
* If the nominal hover throttle is defined use it otherwise it is better
|
||||
* to start with low thrust and let it rise as the adaptive filter finds
|
||||
* the vehicle needs more thrust.
|
||||
*/
|
||||
#ifndef GUIDANCE_V_ADAPT_INITIAL_HOVER_THROTTLE
|
||||
#ifdef GUIDANCE_V_NOMINAL_HOVER_THROTTLE
|
||||
#define GUIDANCE_V_ADAPT_INITIAL_HOVER_THROTTLE GUIDANCE_V_NOMINAL_HOVER_THROTTLE
|
||||
#else
|
||||
#define GUIDANCE_V_ADAPT_INITIAL_HOVER_THROTTLE 0.3
|
||||
#endif
|
||||
#endif
|
||||
PRINT_CONFIG_VAR(GUIDANCE_V_ADAPT_INITIAL_HOVER_THROTTLE)
|
||||
|
||||
/** Minimum hover throttle as factor of MAX_PPRZ.
|
||||
|
||||
Reference in New Issue
Block a user