Copter: fix alt sent to fence_check to be meters

This commit is contained in:
Randy Mackay 2015-04-14 16:00:57 +09:00
parent f06c859d93
commit 55d8f440d4

View File

@ -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 ) {