From 1a5af9dafbcb56f5796e44edd988087252a30159 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Wed, 25 Jul 2012 11:09:38 -0500 Subject: [PATCH] Remove some old debugging code --- flight/Modules/Sensors/sensors.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/flight/Modules/Sensors/sensors.c b/flight/Modules/Sensors/sensors.c index bb3b4bef9..8e865c5a7 100644 --- a/flight/Modules/Sensors/sensors.c +++ b/flight/Modules/Sensors/sensors.c @@ -57,8 +57,6 @@ #include "attitudesettings.h" #include "revocalibration.h" #include "flightstatus.h" -#include "gpsposition.h" -#include "baroaltitude.h" #include "CoordinateConversions.h" #include @@ -74,13 +72,10 @@ // Private variables static xTaskHandle sensorsTaskHandle; -static bool gps_updated = false; -static bool baro_updated = false; // Private functions static void SensorsTask(void *parameters); static void settingsUpdatedCb(UAVObjEvent * objEv); -static void sensorsUpdatedCb(UAVObjEvent * objEv); static void magOffsetEstimation(MagnetometerData *mag); // These values are initialized by settings but can be updated by the attitude algorithm @@ -209,12 +204,6 @@ static void SensorsTask(void *parameters) } } - // If debugging connect callback - if(pios_com_aux_id != 0) { - BaroAltitudeConnectCallback(&sensorsUpdatedCb); - GPSPositionConnectCallback(&sensorsUpdatedCb); - } - // Main task loop lastSysTime = xTaskGetTickCount(); bool error = false; @@ -476,17 +465,6 @@ static void magOffsetEstimation(MagnetometerData *mag) } } -/** - * Indicate that these sensors have been updated - */ -static void sensorsUpdatedCb(UAVObjEvent * objEv) -{ - if(objEv->obj == GPSPositionHandle()) - gps_updated = true; - if(objEv->obj == BaroAltitudeHandle()) - baro_updated = true; -} - /** * Locally cache some variables from the AtttitudeSettings object */