From 454c7045b11189add7913233e86b0aafd4200ae7 Mon Sep 17 00:00:00 2001 From: Soo-Hyun Yoo Date: Wed, 11 Feb 2015 00:46:25 -0800 Subject: [PATCH] refs #17 Disable thermistor and magnetometer reads in multirotor system. Makes things freeze like the GPS read. I'm making a mistake somewhere. --- src/system/multirotor_vehicle_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/multirotor_vehicle_system.cpp b/src/system/multirotor_vehicle_system.cpp index 4b5eda4..7d87d92 100644 --- a/src/system/multirotor_vehicle_system.cpp +++ b/src/system/multirotor_vehicle_system.cpp @@ -35,7 +35,7 @@ void MultirotorVehicleSystem::update() { // Only use magnetometer if it is available if(magnetometer) { - magReading = (*magnetometer)->readMag(); + //magReading = (*magnetometer)->readMag(); } optional thermReading; @@ -46,7 +46,7 @@ void MultirotorVehicleSystem::update() { //gpsReading = (*gps)->readGPS(); } if (thermistor) { - thermReading = (*thermistor)->readTherm(); + //thermReading = (*thermistor)->readTherm(); } }