minimum follow target alt of 8 m added, protecting against nan values in pos controller, fixing ci build error

This commit is contained in:
Jimmy Johnson
2016-05-16 15:11:57 -07:00
parent 42e04d4c11
commit 38b4278998
4 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ MissionBlock::set_follow_target_item(struct mission_item_s *item, float min_clea
item->lon = target.lon;
item->altitude = _navigator->get_home_position()->alt;
if (min_clearance > 0.0f) {
if (min_clearance > 8.0f) {
item->altitude += min_clearance;
} else {
item->altitude += 8.0f; // if min clearance is bad set it to 8.0 meters (well above the average height of a person)