diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index a907d057cc..5fa6d92052 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -142,18 +142,6 @@ void Aircraft::update_position(void) } } -/* - rotate to the given yaw -*/ -void Aircraft::set_yaw_degrees(float yaw_degrees) -{ - float roll, pitch, yaw; - dcm.to_euler(&roll, &pitch, &yaw); - - yaw = radians(yaw_degrees); - dcm.from_euler(roll, pitch, yaw); -} - /* advance time by deltat in seconds */ void Aircraft::time_advance(float deltat) { diff --git a/libraries/SITL/SIM_Aircraft.h b/libraries/SITL/SIM_Aircraft.h index ec4e2fcf46..ff4a05dfa7 100644 --- a/libraries/SITL/SIM_Aircraft.h +++ b/libraries/SITL/SIM_Aircraft.h @@ -142,9 +142,6 @@ protected: /* update location from position */ void update_position(void); - /* rotate to the given yaw */ - void set_yaw_degrees(float yaw_degrees); - /* advance time by deltat in seconds */ void time_advance(float deltat);