Skip to content

Commit

Permalink
Copy commands
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Dec 18, 2023
1 parent 76cdcce commit 72425e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sw/airborne/firmwares/rotorcraft/autopilot_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ void WEAK set_rotorcraft_commands(pprz_t *cmd_out, int32_t *cmd_in, bool in_flig
cmd_in[COMMAND_THRUST] = 0;
}
#endif
cmd_out[COMMAND_ROLL] = cmd_in[COMMAND_ROLL];
cmd_out[COMMAND_PITCH] = cmd_in[COMMAND_PITCH];
cmd_out[COMMAND_YAW] = cmd_in[COMMAND_YAW];
cmd_out[COMMAND_THRUST] = cmd_in[COMMAND_THRUST];
for (int i=0; i < COMMANDS_NB; i++) {
cmd_out[i] = cmd_in[i];
}
}

0 comments on commit 72425e3

Please sign in to comment.