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

MAVSDK offboard examples not working without manual control present #19349

Open
julianoes opened this issue Mar 18, 2022 · 7 comments
Open

MAVSDK offboard examples not working without manual control present #19349

julianoes opened this issue Mar 18, 2022 · 7 comments
Labels
bug Mode: Offboard Offboard mode control

Comments

@julianoes
Copy link
Contributor

Describe the bug
The MAVSDK offboard examples stopped working. It fails to takeoff in offboard mode even with NAV_RCL_ACT set to 0 claiming:

WARN [commander] Failsafe enabled: No manual control stick input

To Reproduce
Steps to reproduce the behavior:

  1. Start SITL
  2. Set NAV_RCL_ACT to 0
  3. Run MAVSDK example: e.g. https://github.com/mavlink/MAVSDK-Python/blob/main/examples/offboard_position_ned.py

I get:

pxh> 
pxh> 
pxh> INFO  [mavlink] partner IP: 127.0.0.1
INFO  [tone_alarm] home set
INFO  [tone_alarm] notify negative
INFO  [commander] Armed by external command	
WARN  [commander] Failsafe enabled: No manual control stick input	
INFO  [commander] Failsafe mode activated	
INFO  [tone_alarm] battery warning (fast)
INFO  [commander] Disarmed by auto preflight disarming	
INFO  [logger] closed logfile, bytes written: 3283058
@julianoes julianoes added the bug label Mar 18, 2022
@benjinne
Copy link
Contributor

Is COM_RCL_EXCEPT set to ignore RC in offboard? I made some changes to how the offboard failsafes work in this MR #18160 and could be related.

@Jaeyoung-Lim Jaeyoung-Lim added the Mode: Offboard Offboard mode control label Apr 3, 2022
@omerts
Copy link

omerts commented Apr 11, 2022

The following param settings fixed it for me:

NAV_DLL_ACT = 0
NAV_RCL_ACT = 0
COM_RCL_EXCEPT = 4

Taken from: https://discuss.px4.io/t/offboard-mode-in-sitl/25727/3

@julianoes
Copy link
Contributor Author

Thanks @omerts. We should probably set that param in the example, or at least make a comment.

@Amna-Smaoui
Copy link

hello ! where should i set this param ? I have the same issue

@julianoes
Copy link
Contributor Author

I'm currently trying to fix this for MAVSDK tests: mavlink/MAVSDK#1813

@julianoes
Copy link
Contributor Author

@MaEtUgR sorry, this fell of my radar. You fixed this in the meantime, right?

@fabrizioschiano
Copy link

@MaEtUgR Please check if this is somehow related to your problem: #20667 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Mode: Offboard Offboard mode control
Projects
None yet
Development

No branches or pull requests

6 participants