manual_control: send initial mode in the beginning

In order for commander to know the desired mode we need to send the
initial position of the mode slot.
This commit is contained in:
Julian Oes
2021-11-09 16:05:25 +01:00
committed by Matthias Grob
parent a91fa7f3c1
commit 916ffef04c
2 changed files with 49 additions and 39 deletions
@@ -84,6 +84,7 @@ private:
void Run() override;
void evaluate_mode_slot(uint8_t mode_slot);
void send_mode_command(int32_t commander_main_state);
void send_arm_command(bool should_arm, ArmingOrigin origin);
void send_rtl_command();