From 134bcff0dfce1e05c58945def9c967f8440f8d52 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Tue, 28 Jun 2016 23:20:39 +0200 Subject: [PATCH] LP-349 - Remove warning if pathplanner has no defined plan --- flight/modules/PathPlanner/pathplanner.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/flight/modules/PathPlanner/pathplanner.c b/flight/modules/PathPlanner/pathplanner.c index cda7bfcf4..0faeeafe2 100644 --- a/flight/modules/PathPlanner/pathplanner.c +++ b/flight/modules/PathPlanner/pathplanner.c @@ -188,16 +188,7 @@ static void pathPlannerTask() FlightStatusGet(&flightStatus); if (flightStatus.ControlChain.PathPlanner != FLIGHTSTATUS_CONTROLCHAIN_TRUE) { pathplanner_active = false; - if (!validPathPlan) { - // unverified path plans are only a warning while we are not in pathplanner mode - // so it does not prevent arming. However manualcontrols safety check - // shall test for this warning when pathplan is on the flight mode selector - // thus a valid flight plan is a prerequirement for arming - AlarmsSet(SYSTEMALARMS_ALARM_PATHPLAN, SYSTEMALARMS_ALARM_WARNING); - } else { - AlarmsClear(SYSTEMALARMS_ALARM_PATHPLAN); - } - + AlarmsClear(SYSTEMALARMS_ALARM_PATHPLAN); return; }