-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
UAVCAN mag - failsafe/calibration issues #3122
Comments
I believe it would make sense to first investigate the weird behavior I observed over there #2912 (comment), as it could be (most likely is) related to this one. |
I just started using the CAN mag/GPS again after quite some time. Looks like the older issues persist (I thought that it had been fixed) and more. The calibration issue seems something new though. I never faced this previously. Especially since calibration should not depend on the failover, etc, and only the order in which the sensors come up. Can you try reproducing the problem on bench? |
Ah. This is something. If I stop and restart commander after UAVCAN has come up, system can successfully go to standby. |
Added printfs show this:
I think the issue is that the preflight checks don't re-check if the device has come up later. How to deal with this? That was why re-starting commander would get the system up. |
Closing in favour of #2912 |
Issue 1:
The UAVCAN mag isn't getting properly switched over to when it comes up later. "Best" equals 1, the UAVCAN mag, but it isn't getting used.
Voter class output right after boot :
If I connect via QGC, suddenly I see "SENSOR FAILSAFE: RETURN TO LAND IMMEDIATELY". I'm not sure yet what the correlation is to connecting to QGC.
Issue 2:
The next issue is that magnetometer calibrations don't stay. After calibration, the system goes to standby, but on reboot, it again fails to start up properly.
Note that there is not proper error message related to a missing calibration or similar, just that ARMING_STATE_INIT to ARMING_STATE_STANDBY is denied if I try to arm it.
Note : I have main board orientation set to YAW_270 and external mag orientation set to default (YAW_NONE)
@pavel-kirienko @LorenzMeier Help would be appreciated on this one.
The text was updated successfully, but these errors were encountered: