Code example: Calculating True Air Speed (TAS)
Objects Used
The following FPAssistant programming objects are using in this example:
- IndicatedAirSpeed (struct) - Object to perform the calculation of True Air Speed
- Altitude (struct) - Object to handle Altitude
- Airspeed (struct) - Object to handle Airspeed
C# Example
In this example, a TAS will be calculated for an airspeed of 200kph at an altitude of 4500m with a ISA of 15.
Altitude altitude = new Altitude(4500, AltitudeUnits.Metres);
double isa = 15; // VAR - Temperature variation about ISA in Deg. C
IndicatedAirSpeed ias = new IndicatedAirSpeed(airspeed, altitude, Isa);
Once this IndicatedAirSpeed object has been created, then the member properties are available to access the values plus the calculated values of TAS and K
ias.TrueAirSpeed
ias.K Conversion factor