Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Mode switch from hold mode to an unassigned mode triggers mode change #23029

Open
Jaeyoung-Lim opened this issue Apr 18, 2024 · 0 comments

Comments

@Jaeyoung-Lim
Copy link
Member

Jaeyoung-Lim commented Apr 18, 2024

Describe the bug

We had a crash when doing autonomous missions while in HOLD mode.

What happened was that the RC seemed to had a slight glitch, where the value of the mode switch changed.
bokeh_plot (1)

This made the mode switch to briefly be at the unassigned mode value, which raised the switch_changes in the manual_control_switch message. As you can see in the image below, mode_slot 3, 4, 5 was assigned as Manual, Altitude, Position but the position switch breifly goes to mode_slot 2
image

This triggered a mode switch from HOLD mode to Manual, where the throttle stick was at zero, resulting in a crash.
bokeh_plot

The main issue is that mode_slot 2, which triggered the mode change, is a position not achievable with the three position switch on my Taranis 9X. Moreover, it was an unassigned mode_slot which triggered the change.

To Reproduce

  1. Configure the RC mode switch to an unassigned mode slot
  2. Put the vehicle in hold mode
  3. Transition to an unassigned mode

Expected behavior

If the mode_slot is unassigned, the vehicle should stay in HOLD mode.

Screenshot / Media

unnamed

Flight Log

https://review.px4.io/plot_app?log=8867de8d-b255-4d66-ab0a-b7e8029c4876

Software Version

9887058 (with added DDS topics: ethz-asl@bb7c6f4)

Flight controller

Pixhawk 4

Vehicle type

Multicopter

How are the different components wired up (including port information)

No response

Additional context

No response

@Jaeyoung-Lim Jaeyoung-Lim changed the title [Bug] Mode switch from hold mode with an unassigned mode [Bug] Mode switch from hold mode to an unassigned mode triggers mode change Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant