@@ -1359,16 +1359,17 @@ void menuInstrument()
1359
1359
systemPrintln (" Menu: Instrument Setup" );
1360
1360
1361
1361
// Print the combined APC
1362
- systemPrintf (" Combined Height of Instrument: %0.3fm\r\n " , ((settings.antennaHeight_mm + settings.antennaPhaseCenter_mm ) / 1000.0 ));
1362
+ systemPrintf (" Combined Height of Instrument: %0.3fm\r\n " ,
1363
+ ((settings.antennaHeight_mm + settings.antennaPhaseCenter_mm ) / 1000.0 ));
1363
1364
1364
- systemPrintf (" 1) Set Antenna Height (a.k.a. Pole Length): %0.3fm \r\n " , settings.antennaHeight_mm / 1000.0 );
1365
+ systemPrintf (" 1) Set Antenna Height (a.k.a. Pole Length): %0.3lfm \r\n " , settings.antennaHeight_mm / ( double ) 1000.0 );
1365
1366
1366
1367
systemPrintf (" 2) Set Antenna Phase Center (a.k.a. ARP): %0.1fmm\r\n " , settings.antennaPhaseCenter_mm );
1367
1368
1368
1369
systemPrint (" 3) Report Tip Altitude: " );
1369
1370
systemPrintf (" %s\r\n " , settings.outputTipAltitude ? " Enabled" : " Disabled" );
1370
1371
1371
- if (present.imu_im19 )
1372
+ if (present.imu_im19 )
1372
1373
{
1373
1374
systemPrint (" 4) Tilt Compensation: " );
1374
1375
systemPrintf (" %s\r\n " , settings.enableTiltCompensation ? " Enabled" : " Disabled" );
@@ -1380,11 +1381,13 @@ void menuInstrument()
1380
1381
1381
1382
if (incoming == 1 )
1382
1383
{
1383
- float antennaHeight = 0 ;
1384
+ double antennaHeight = 0 ;
1384
1385
1385
- if (getNewSetting (" Enter the antenna height (a.k.a. pole length) in meters" , -15.0 , 15.0 ,
1386
- &antennaHeight) == INPUT_RESPONSE_VALID)
1387
- settings.antennaHeight_mm = antennaHeight * 1000.0 ;
1386
+ if (getNewSetting (" Enter the antenna height (a.k.a. pole length) in meters" , -15.0 , 15.0 , &antennaHeight) ==
1387
+ INPUT_RESPONSE_VALID)
1388
+ {
1389
+ settings.antennaHeight_mm = truncf (antennaHeight * 1000.0 );
1390
+ }
1388
1391
}
1389
1392
else if (incoming == 2 )
1390
1393
{
0 commit comments