Yes, you’re right that the GPA.Delta does have little jumps and they are very evenly spaced which is quite suspicioius. The board’s PM message doesn’t report any significant CPU issue.
yes, I noticed that too. As if something at a certain time slows down the receipt of data from the gps. And the most interesting thing is that this does not happen after 10hz - which suggests that the data from the gps comes as usual at 5Hz, but the AP processes them out of time
Some update - i’m test latest b7 on 57600 and with stock buffers - gps warning messages present! Increasing buffers - fix this at 57600 speed but not > 57600
This mean that not only speed but buffers help to fix this spikes!
Maybe try changing gps_save_cfg to 1 (Save config)? I see in the log you have it set to 2(Save only when needed). Maybe NMEA on by default flooding the link? Are ubx msgs even sent? Or maybe they are not necessary, I am not knowledgeable on this
Output protocol NMEA-0183 or UBX, default NMEA-0183 protocol
No this not related to my changes to notch or gyro speed - this logs from last my changes for 7 inch copter - problems started from 450 copter with default gyro speed and after i’m start using crsf protocol.
From my last logs i’m see that cpu load about 35% in flight - this is bad values? dont think.
I’m test all variants with def gyro, with notch_opt 0 - all same. And gps spikes present in 57600 baud rate too. And after flight, at idle i’m see again gps warnings.
I do not think that f4 is weak for such simple tasks - the reason here is most likely in the incorrect operation of either the cross protocol or the task manager as a whole. Moreover, I do not like it when they say - perhaps the processor is not so fast for such settings - for this there are programmers - to solve tasks and optimize the code.
Honestly, it’s not hard for me to find the reason - but I need a lot of time to study the part of the code that is responsible for all this - but I don’t have time - and I think that someone who participated in this should do this and knows where problems can arise … Moreover, the processing of data from the receiver and the gps is one of the main tasks that must work very stably and without failures - otherwise the whole system will fall apart very quickly without careful optimization.
I apologize for the many words and this is my personal opinion. Thanks.
We’ll have to go back to 4.0.7 and not twitch.
The load value only tells you what is going on in the scheduler - it doesn’t tell you about the other threads (e.g. the IMU thread which runs the notch filters). Honestly, if you are just going to make wrong assumptions about the code and are not willing to help track this down then I can’t really help you.
I am always ready to help test anything. But at the moment I see that the situation requires a thorough review, testing and identification of problems associated with the operation of com ports - and whether this is an excessive load on the processor or not - this requires tests, logs, data is needed - I asked before how and where identify the reason - but so far I have not seen a single piece of advice that would have practical meaning. If you have any thoughts what it might be - please suggest - i’m test.
And 4.0.7 have this spikes in gpa delta too
–enable-stats has been fixed in master - I suggest you use that to see where the CPU time is going. I also suggest you take a look at the DMA contention statistics.
This is bad ?
Some update - i’m revert R9M to stock FW and now i’m can say that gps warnings showing again - this only mean that problem related to rcin but not crsf!
Make test more - with DMA on 57600 i’m have this warnings too - what cause this? maybe 4.0.7 have this problem too but without any message to MP ?
11% CPU on RC in is pretty high. The * means that the worst time was longer than 5000us which is bad. Interesting that you have a lot of idle - I get about 6% CPU on RCIN on an F7 again with the long worst time, but I have no idle.
This logs with frsky sbus and sport telemetry connected to serial1 and notch_opt - 0. i’m now not using crsf or elrs. F7 have 216mhz f4 have 168mhz - this differnces in rc loading. 5ms - for sbus i’m think normal or?
Idle - dont know why this… But i’m only see that DMA breaks GPS stability…
Why rcin loading cpu ? maybe more priority?
well, not the point.
Might just turn off these warnings
Please say where in code writing to log about GPA delta - I want to trace the full path - and try to figure out the reason in instability GPA delta.
And I can say that lately, when using crossfire, I began to receive a failsafe without causation - perhaps this is somehow related and saw such entries on the forum…
I am investigating the CRSF failsafe as I have a reproducer here. The GPA delta is because of the GPS jitter correction code - no idea where the code is.
I’m partial fix this when change gps_rate_ms to 100ms
Now spikes from 100 to 170ms from logs, but jitter detector using 215ms as max value - now AP silent but spikes present!
I’m think this need attention from devs…
@Derek The log shows that the crystal on this board sets a new record for poor calibration. The system clock is off by 6631 parts per million. That is why we’re getting those delta corrections.
It would be good to know if this affects all MambaF405v2 boards or if you just got a bad one.