Skip to content

Commit

Permalink
Rover: log attitude target in degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Sep 6, 2024
1 parent 372a4f4 commit 1284a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rover/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// Write an attitude packet
void Rover::Log_Write_Attitude()
{
float desired_pitch_cd = degrees(g2.attitude_control.get_desired_pitch()) * 100.0f;
const Vector3f targets(0.0f, desired_pitch_cd, 0.0f);
float desired_pitch = degrees(g2.attitude_control.get_desired_pitch());
const Vector3f targets(0.0f, desired_pitch, 0.0f);

ahrs.Write_Attitude(targets);

Expand Down

0 comments on commit 1284a9e

Please sign in to comment.