Hi, I did never encounter the bug either but it’s there
And yes, copter 3.6.x did have a sub optimal frsky scheduler that would stall all telemetry while messages were being sent, version 4.x.x brought 2 big improvements: a dedicated thread for the frsky subsystem which solved many issues (but is the root cause of the potential race condition) and an improved frsky packet scheduler.
Thank you. I loaded your parameters onto a quad with 4 CAN ESCs but I can’t reproduce the issue. I’d appreciate it if you could try to narrow down the issue for us.
Can you please try disabling features progressively and see which feature is key to making the problem happen?
Some suggestions:
AVOID_ENABLE
LOG_DISARMED
LOG_FILE_DSMROT
CAN_SLCAN
CAN
FENCE
GPS
TELEM_DELAY
I know it will make it unflyable disabling many of these. All we’re trying to find is which ones affect log corruption.
Please also try a different microSD card.
Thanks!
I have also put a firmware here for you to test: http://uav.tridgell.net/tmp/copter-CubeBlack-4.0.1-test1.apj
this firmware is the same as 4.0.1rc1, but removes a patch that adds new CAN ESC logging. That is the most likely change to have caused an issue.
Cheers, Tridge
Log gets corrupted on both your 4.0.1-test1.apj and on 4.0.1-rc2
Downloading a log will cause following messages happen during/after (CAN_P2_DRIVER=ANY)
This happens on all ! AC 4.0.0 !, 4.0.1-test1.apj and on 4.0.1-rc2
a related question: what is the minimum set of attached devices to your board that is needed to reproduce the issue? I really want to reproduce the issue here to fix it and need to know what devices I need to attach. The key issue I’m looking for is the log corruption.
If you are using the full carrier board then are you aware that CAN1 and CAN2 labels are backwards on the case? Are your CAN devices connected to the connector in the center of the board (next to telem2) or on the right hand edge?
@rmackay9@wn0x Have you been able to use the rate and direction change of the new circle mode? I think I set it up properly but it does not work for me. Sorry I know this is an orld thread but the one created does not get any answer Circle Mode manual control not working
@drtrigon unfortunately not. I don’t think it was a priority feature at the time so gave up. I was hoping for something very simlar to the 3DR Solo which did a fantastic job of implementing the feature.
@rmackay9 Is there a way to debug ardupilot not needing to compile it by myself? If not what’s the quickest way to get a build chain running? Is there a VM or a docker or similar existing?
edit: @wn0x Thanks for the info. I have a SplashDrone that was able to do it years ago already - but I changed the FC due to other reasons, e.g. missing GCS.
Is it possible to use lua scripts “param:get” to read the current state of “CIRCLE_RATE” and output it to GCS. Would this work and output useful debug info?
Txs for the report. I’ve replied over on the other thread. In short 4.2 seems to work so maybe you could test with the current 4.2 beta? I don’t think much has changed with circle mode since 4.0.x but since I’ve verified 4.2 works maybe you could give that a try?