Skip to content

Commit

Permalink
Tracker: 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 1284a9e commit 098f054
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AntennaTracker/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
// Write an attitude packet
void Tracker::Log_Write_Attitude()
{
Vector3f targets;
targets.y = nav_status.pitch * 100.0f;
targets.z = wrap_360_cd(nav_status.bearing * 100.0f);
const Vector3f targets{0.0f, nav_status.pitch, nav_status.bearing};
ahrs.Write_Attitude(targets);
AP::ahrs().Log_Write();
}
Expand Down

0 comments on commit 098f054

Please sign in to comment.