예제 #1
0
파일: Units.cpp 프로젝트: Plantain/XCSoar
fixed
Units::ConvertUnits(fixed Value, Units_t From, Units_t To)
{
    return ToUserUnit(ToSysUnit(Value, From), To);
}
예제 #2
0
 static inline fixed
 ToSysWindSpeed(fixed value)
 {
   return ToSysUnit(value, current.wind_speed_unit);
 }
예제 #3
0
 static inline fixed
 ToSysPressure(fixed Value)
 {
   return ToSysUnit(Value, current.pressure_unit);
 }
예제 #4
0
 static inline fixed
 ToSysTaskSpeed(fixed value)
 {
   return ToSysUnit(value, current.task_speed_unit);
 }
예제 #5
0
 static inline fixed
 ToSysVSpeed(fixed value)
 {
   return ToSysUnit(value, current.vertical_speed_unit);
 }
예제 #6
0
 static inline fixed
 ToSysDistance(fixed value)
 {
   return ToSysUnit(value, current.distance_unit);
 }
예제 #7
0
 static inline fixed
 ToSysTemperature(fixed value)
 {
   return ToSysUnit(value, current.temperature_unit);
 }
예제 #8
0
 static inline fixed
 ToSysAltitude(fixed value)
 {
   return ToSysUnit(value, current.altitude_unit);
 }