-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Lighthouse calibration lost in flight #1250
Comments
hi! thanks for sharing. This week is our quartely meeting but I've put it on our triage list of next week |
In the current implementation, we decode the calibration data whenever we receive it, also if we already have calibration data. One option could be to ignore calibration data if it is already present, but that would create some complications when you introduce a new base station or move to a new system. There is a CRC in the transmitted calibration data and my assumption is that that bit errors in the transmission should have been found. Maybe there is a bug in the check? |
Thanks for checking, yes, seems like that... |
We just had a triage meeting on this, but the bottom line is, this needs to be investigated more closely as we don't know why this happens. |
Some more thoughts on this:
|
The problem is most likely that the checksum is never checked. See
|
A strange issue: the calibration of one of the base stations got lost/changed in flight, causing the Kalman filter to reset (and keep resetting).
Happened in Command Based Flight via cfclient, where I just hit take off and then let it hover (battery endurance tests).
After this, even when on ground, I would get Kalman filter diverge and reset every few seconds.
I found out that when one (particular) base station was switched off, then all was fine.
Loading a saved system config in the Lighthouse tab fixed the issue and I could use all 4 base stations again.
The console messages are below, the affected base station is number 3.
Suspicious are the received calibrations from addresses that differ in just one character...
Platform: flapper (Bolt 1.0)
4 LH basestations V2.0
FW: 2022.3 with only minor changes (platform config)
CFclient: 2022.3 with minor changes (forcing to land when battery is low)
If useful, I have some logfiles as well.
The text was updated successfully, but these errors were encountered: