Skip to content

Commit

Permalink
write trust setpoint to correct field for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAntener committed Mar 25, 2015
1 parent 7554eb5 commit b361f7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/mc_pos_control/mc_pos_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1308,8 +1308,8 @@ MulticopterPositionControl::task_main()

/* save thrust setpoint for logging */
_local_pos_sp.acc_x = thrust_sp(0);
_local_pos_sp.acc_x = thrust_sp(1);
_local_pos_sp.acc_x = thrust_sp(2);
_local_pos_sp.acc_y = thrust_sp(1);
_local_pos_sp.acc_z = thrust_sp(2);

_att_sp.timestamp = hrt_absolute_time();

Expand Down
4 changes: 2 additions & 2 deletions src/modules/mc_pos_control_multiplatform/mc_pos_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,8 @@ void MulticopterPositionControl::handle_vehicle_attitude(const px4_vehicle_atti

/* save thrust setpoint for logging */
_local_pos_sp_msg.data().acc_x = thrust_sp(0);
_local_pos_sp_msg.data().acc_x = thrust_sp(1);
_local_pos_sp_msg.data().acc_x = thrust_sp(2);
_local_pos_sp_msg.data().acc_y = thrust_sp(1);
_local_pos_sp_msg.data().acc_z = thrust_sp(2);

_att_sp_msg.data().timestamp = get_time_micros();

Expand Down

0 comments on commit b361f7c

Please sign in to comment.