]> git.mxchange.org Git - flightgear.git/commitdiff
Add altimeter to the ATIS. Always does inches at the moment.
authordaveluff <daveluff>
Tue, 23 Mar 2004 23:25:37 +0000 (23:25 +0000)
committerdaveluff <daveluff>
Tue, 23 Mar 2004 23:25:37 +0000 (23:25 +0000)
src/ATC/atis.cxx

index 4ab783d8171c234657f2e785766d4cf018ca809a..e4f5dcb0cfa6cbc58a41a1e4fa445fe40594b6c7 100644 (file)
@@ -180,6 +180,11 @@ void FGATIS::UpdateTransmission() {
        }
        
        // Get the pressure / altimeter
+       double pressure_inches = fgGetDouble("/environment/pressure-sea-level-inhg");
+       transmission += " / Altimeter ";
+       sprintf(buf, "%.2f", pressure_inches);
+       tempstr1 = buf;
+       transmission += ConvertNumToSpokenDigits(tempstr1);
        
        // Based on the airport-id and wind get the active runway
        //FGRunway *r;