X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2Fflight.hxx;h=35ae2550a900924e25987fb9c63ccd008fe12829;hb=05476d0be3d42f7de771a62fa005291f6dbd5261;hp=6965d30983e401c520e49eabaf8b0d8124439ef9;hpb=a0588272dc51ef0b2630f981cf1a913665cdc87a;p=flightgear.git diff --git a/src/FDM/flight.hxx b/src/FDM/flight.hxx index 6965d3098..35ae2550a 100644 --- a/src/FDM/flight.hxx +++ b/src/FDM/flight.hxx @@ -552,6 +552,7 @@ public: inline double get_V_ground_speed() const { return v_ground_speed; } inline double get_V_ground_speed_kt() const { return v_ground_speed * SG_FEET_TO_METER * 3600 * SG_METER_TO_NM; } + inline void set_V_ground_speed_kt(double ground_speed) { v_ground_speed = ground_speed / ( SG_FEET_TO_METER * 3600 * SG_METER_TO_NM); } inline double get_V_equiv_kts() const { return v_equiv_kts; }