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

Rover: INITIAL_MODE broken? #19361

Closed
rmackay9 opened this issue Nov 25, 2021 · 4 comments
Closed

Rover: INITIAL_MODE broken? #19361

rmackay9 opened this issue Nov 25, 2021 · 4 comments

Comments

@rmackay9
Copy link
Contributor

During a quick SITL test while investigating this user report I found that Rover's INITIAL_MODE doesn't seem to work.

I set the parameter to 1 for Acro or 15 for Guided and it simply didn't end up in these modes when the simulator was restarted. I haven't investigated this thoroughly.

@shiv-tyagi
Copy link
Contributor

@rmackay9
I was able to reproduce this. I would love working on this issue. Will push a patch if able to get to the bottom of this problem.

@khancyr
Copy link
Contributor

khancyr commented Dec 8, 2021

it would be great to improve the autotest on this as it should definitively work. Most probable that the mode change is refuse because of missing position or velocity estimate

@shiv-tyagi
Copy link
Contributor

shiv-tyagi commented Dec 11, 2021

@rmackay9 I investigated this issue. I found out that the rc switch which we have for setting flight mode is the problem. Initially the rover successfully set itself to the mode specified by INITIAL_MODE but as soon as it starts getting rc pulses, it reads the mode switch and goes in the mode which rc is pointing to.

@rmackay9
Copy link
Contributor Author

@shiv-tyagi,

Great, thanks very much for this. I think I'll close this issue then.

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

3 participants