diff --git a/APMrover2/Log.cpp b/APMrover2/Log.cpp index 05f46d26cb..ebed896252 100644 --- a/APMrover2/Log.cpp +++ b/APMrover2/Log.cpp @@ -25,7 +25,8 @@ void Rover::Log_Write_Arm_Disarm() // Write an attitude packet void Rover::Log_Write_Attitude() { - const Vector3f targets(0.0f, 0.0f, 0.0f); // Rover does not have attitude targets, use place-holder for commonality with Dataflash Log_Write_Attitude message + float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f; + const Vector3f targets(0.0f, desired_pitch_cd, 0.0f); DataFlash.Log_Write_Attitude(ahrs, targets);