예제 #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
 ToUserWindSpeed(fixed value)
 {
   return ToUserUnit(value, current.wind_speed_unit);
 }
예제 #3
0
 static inline fixed
 ToUserPressure(fixed Value)
 {
   return ToUserUnit(Value, current.pressure_unit);
 }
예제 #4
0
 static inline fixed
 ToUserTaskSpeed(fixed value)
 {
   return ToUserUnit(value, current.task_speed_unit);
 }
예제 #5
0
 static inline fixed
 ToUserVSpeed(fixed value)
 {
   return ToUserUnit(value, current.vertical_speed_unit);
 }
예제 #6
0
 static inline fixed
 ToUserDistance(fixed value)
 {
   return ToUserUnit(value, current.distance_unit);
 }
예제 #7
0
 static inline fixed
 ToUserTemperature(fixed value)
 {
   return ToUserUnit(value, current.temperature_unit);
 }
예제 #8
0
 static inline fixed
 ToUserAltitude(fixed value)
 {
   return ToUserUnit(value, current.altitude_unit);
 }