You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
407 B
20 lines
407 B
// |
|
// functions to support precision landing |
|
// |
|
|
|
#include "Copter.h" |
|
|
|
#if PRECISION_LANDING == ENABLED |
|
|
|
void Copter::init_precland() |
|
{ |
|
copter.precland.init(400); |
|
} |
|
|
|
void Copter::update_precland() |
|
{ |
|
// alt will be unused if we pass false through as the second parameter: |
|
return precland.update(rangefinder_state.alt_cm_glitch_protected, |
|
rangefinder_alt_ok()); |
|
} |
|
#endif
|
|
|