From 1b8055aed9c0ec4431e48a57acebde6abad8f1ee Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 10 Feb 2014 14:02:56 +0900 Subject: [PATCH] Copter: remove unused t7 const Saves 4 bytes --- ArduCopter/ArduCopter.pde | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 686c41c872..89a4af8833 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -413,7 +413,7 @@ static union { uint8_t usb_connected : 1; // 13 // true if APM is powered from USB connection uint8_t rc_receiver_present : 1; // 14 // true if we have an rc receiver present (i.e. if we've ever received an update }; - uint32_t value; + uint16_t value; } ap; //////////////////////////////////////////////////////////////////////////////// @@ -495,10 +495,6 @@ float tuning_value; //////////////////////////////////////////////////////////////////////////////// // GPS variables //////////////////////////////////////////////////////////////////////////////// -// This is used to scale GPS values for EEPROM storage -// 10^7 times Decimal GPS means 1 == 1cm -// This approximation makes calculations integer and it's easy to read -static const float t7 = 10000000.0; // We use atan2 and other trig techniques to calaculate angles // We need to scale the longitude up to make these calcs work // to account for decreasing distance between lines of longitude away from the equator