From 7e18480cd207afea5fdd930060e0397bed53dc94 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Fri, 24 Apr 2015 12:49:11 +0900 Subject: [PATCH] HAL_PX4: fix compile warnings re float constants --- libraries/AP_HAL_PX4/AnalogIn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_PX4/AnalogIn.cpp b/libraries/AP_HAL_PX4/AnalogIn.cpp index 4fb9cd58bb..c3784fc60b 100644 --- a/libraries/AP_HAL_PX4/AnalogIn.cpp +++ b/libraries/AP_HAL_PX4/AnalogIn.cpp @@ -43,7 +43,7 @@ static const struct { } pin_scaling[] = { #ifdef CONFIG_ARCH_BOARD_PX4FMU_V1 // PX4 has 4 FMU analog input pins - { 10, (5.7*3.3)/4096 }, // FMU battery on multi-connector pin 5, + { 10, (5.7f*3.3f)/4096 }, // FMU battery on multi-connector pin 5, // 5.7:1 scaling { 11, 6.6f/4096 }, // analog airspeed input, 2:1 scaling { 12, 3.3f/4096 }, // analog2, on SPI port pin 3 @@ -379,7 +379,7 @@ AP_HAL::AnalogSource* PX4AnalogIn::channel(int16_t pin) { for (uint8_t j=0; j