-
Notifications
You must be signed in to change notification settings - Fork 18.5k
AP_Arming_Copter: Allow arming with unhealthy visodom in non-gps modes #29264
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
base: master
Are you sure you want to change the base?
Conversation
5b1383f
to
2218afd
Compare
I will test this, I was about to raise a PR myself |
d9226c4
to
4a7d8bf
Compare
eb1dcb6
to
84dcab9
Compare
2978dbc
to
f702274
Compare
aceb932
to
1d7b05b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit concerned that some users may require these checks to be good before arming. They're probably doing something silly anyway - but have you considered GUIDED_NOGPS
mode when writing this check?
ArduCopter/AP_Arming_Copter.cpp
Outdated
// performs pre_arm visodom related checks and returns true if passed | ||
bool AP_Arming_Copter::visodom_checks(bool display_failure) | ||
{ | ||
// check if fence requires GPS/position |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing check for require_location == RequireLocation::YES
in here
68f0c2b
to
a48284b
Compare
The requested changes should be in now. I want this because I'm currently building a positioning system for my stampfly to use loiter and so on. But I also want to fly it in Stabilize or Althold if I'm somewhere else, so Guided-NoGPS doesn't really fit the case. |
a48284b
to
fc4d282
Compare
8b9c5b2
to
5daa83a
Compare
5a035ff
to
b677f24
Compare
f640046
to
c554f55
Compare
c554f55
to
ceab06e
Compare
ceab06e
to
8307a57
Compare
This is essentially the fixed version of #29258, see more info about that at the bottom.
This allows arming in non-GPS flight modes like Stabilize, even if the visual odometry is unhealthy. The behavior is mostly copied from gps_checks.
I compiled one board with (fmuv3) and one without (Kakute F7 Mini) visual odometry. And for both boards I compiled plane and copter. I also tested it on a barebones fmuv3. With:
on Copter 4.5.7. the prearm message visodom unhealthy is shown in Stabilize. With this branch the message disappears in Stabilize, but appears again when changing to Loiter.
I initially only tested it for copter on sitl and fmuv3, after opening the initial pull request I got all the error messages about compiler errors in other vehicles and boards with only 1MB of storage. Realizing my mistake I closed the pull request. Now due to the rebase and force-push I can't reopen the original pull request. I'm sorry about the inconvenience, but on a positive note, I learned a lot about git today...