From 0ce1ce9c4fe40dbff2670e331491ca179e690eb9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 21 Aug 2019 12:24:19 +0900 Subject: [PATCH] SITL: minor format changes for sailboat --- libraries/SITL/SIM_Sailboat.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libraries/SITL/SIM_Sailboat.h b/libraries/SITL/SIM_Sailboat.h index b82f41959c..dd26862bc9 100644 --- a/libraries/SITL/SIM_Sailboat.h +++ b/libraries/SITL/SIM_Sailboat.h @@ -52,6 +52,9 @@ private: // return lateral acceleration in m/s/s given a steering input (in the range -1 to +1) and speed in m/s float get_lat_accel(float steering, float speed) const; + // simulate waves and swell + void update_wave(float delta_time); + float steering_angle_max; // vehicle steering mechanism's max angle in degrees float turning_circle; // vehicle minimum turning circle diameter in meters @@ -63,13 +66,9 @@ private: const float mass = 2.0f; Vector3f velocity_ef_water; // m/s - - // simulate basic waves / swell - void update_wave(float delta_time); - Vector3f wave_gyro; // rad/s - float wave_heave; // m/s/s - float wave_phase; // rads - + Vector3f wave_gyro; // rad/s + float wave_heave; // m/s/s + float wave_phase; // rads }; } // namespace SITL