mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Copter: fix alt sent to fence_check to be meters
This commit is contained in:
parent
f06c859d93
commit
55d8f440d4
@ -20,7 +20,7 @@ void fence_check()
|
||||
fence.set_home_distance(home_distance*0.01f);
|
||||
|
||||
// check for a breach
|
||||
new_breaches = fence.check_fence(pv_alt_above_home(inertial_nav.get_altitude()));
|
||||
new_breaches = fence.check_fence(pv_alt_above_home(inertial_nav.get_altitude())/100.0f);
|
||||
|
||||
// if there is a new breach take action
|
||||
if( new_breaches != AC_FENCE_TYPE_NONE ) {
|
||||
|
Loading…
Reference in New Issue
Block a user