Skip to content

Commit

Permalink
AR_PosControl: integrate PSC logging update
Browse files Browse the repository at this point in the history
Co-authored-by: Randy Mackay <[email protected]>
  • Loading branch information
lthall and rmackay9 committed Oct 3, 2024
1 parent 543b484 commit 3ff2fe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/APM_Control/AR_PosControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,17 @@ void AR_PosControl::write_log()
Vector2f pos_target_2d_cm = get_pos_target().tofloat() * 100.0;

// reuse logging from AC_PosControl:
AC_PosControl::Write_PSCN(pos_target_2d_cm.x, // position target
AC_PosControl::Write_PSCN(0.0, // position desired
pos_target_2d_cm.x, // position target
curr_pos_NED.x * 100.0, // position
_vel_desired.x * 100.0, // desired velocity
_vel_target.x * 100.0, // target velocity
curr_vel_NED.x * 100.0, // velocity
_accel_desired.x * 100.0, // desired accel
_accel_target.x * 100.0, // target accel
curr_accel_NED.x); // accel
AC_PosControl::Write_PSCE(pos_target_2d_cm.y, // position target
AC_PosControl::Write_PSCE(0.0, // position desired
pos_target_2d_cm.y, // position target
curr_pos_NED.y * 100.0, // position
_vel_desired.y * 100.0, // desired velocity
_vel_target.y * 100.0, // target velocity
Expand Down

0 comments on commit 3ff2fe9

Please sign in to comment.