コード例 #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);
 }