Plane 4.4 release

@ tridge

There is a problem that I am facing with Firmware 4.4.0 due to the value of max_t (main loop rate). I connected to the Cuav v5+ system via the com port (USP), and I ran the system with version 4.4.0 and set the parameters to default after I activated q_enable, also the value SCHED_LOOP_RATE is 300, which is the default value. I made the system run for a while, switching modes, then I analyzed the .bin record attached below, and I saw that the value of max_t = 5 and 4.5, and the correct value for it is 3.3ms. This problem did not appear to me when I was using version 4.0. 7. What is the solution please?: 00000001.BIN - Google Drive

and This is another log,Together form 4.4.3 It’s the same problem:

and This is another log with the 4.0.7 Firmware and its default parameters, also with the same steps q_enable = 1 and SCHED_LOOP_RATE = 300, it was connected to the system via com (USP), and with the same system used for 4.4.0 Cuavv5+, it is noted that the value of max_t here is at 4.0 .7 equals 3.3ms.

@trag123123 I just tested a CUAVv5 with 4.4.4 and I do not see any scheduling errors when I load the parameters from your log. Please re-test with 4.4.4.
Note that you can see scheduling errors without downloading the log file by setting SCHED_DEBUG=1 and looking in the messages tab. This is what I see:

AP: PERF: 0/1500 [3446:3209] F=300Hz sd=11 Ex=0
AP: PERF: 0/1500 [3420:3245] F=300Hz sd=10 Ex=0
AP: PERF: 0/1500 [3463:3203] F=300Hz sd=10 Ex=0
AP: PERF: 0/1500 [3419:3247] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3495:3169] F=300Hz sd=14 Ex=0
AP: PERF: 0/1500 [3410:3258] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3432:3234] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3424:3235] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3439:3227] F=300Hz sd=10 Ex=0
AP: PERF: 0/1500 [3434:3232] F=300Hz sd=10 Ex=0
AP: PERF: 0/1500 [3458:3210] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3454:3216] F=300Hz sd=12 Ex=0
AP: PERF: 0/1500 [3454:3214] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3422:3244] F=300Hz sd=10 Ex=0
AP: PERF: 0/1500 [3416:3250] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3413:3257] F=300Hz sd=11 Ex=0
AP: PERF: 0/1500 [3426:3240] F=300Hz sd=11 Ex=0
AP: PERF: 0/1500 [3469:3200] F=300Hz sd=11 Ex=0
AP: PERF: 0/1500 [3413:3250] F=300Hz sd=9 Ex=0
AP: PERF: 0/1500 [3465:3198] F=300Hz sd=11 Ex=0

this shows no long loops (0/1500) and a small loop standard deviation


I’ve just released ArduPilot plane 4.4.4. Changes from 4.4.3:

  • CubeOrange Sim-on-hardware compilation fix
  • RADIX2HD supports external I2C compasses
  • SpeedyBeeF405v4 support
  • DroneCAN battery monitor with cell monitor SoC reporting fix
  • ProfiLED output fixed in both Notify and Scripting
  • NTF_LED_TYPES parameter description fixed (was missing IS31FL3195)
  • Scripting bug that could cause crash if parameters were added in flight
  • STAT_BOOTCNT param fix (was not updating in some cases)
  • don’t query hobbywing DroneCAN ESC IDs while armed
  • clamp empy version to prevent build errors

Happy flying!

6 Likes

Fine, thank you
Cheers, Tridge

Had some very weird EKF3 behaviour because of GYRO data corruption. Please have a look at my thread:

Hello, I used plane 4.4 to fly the quadplane On the first flight, the route moved at a low frequency in roll. After the flight landed, I modified the ff and p of roll, and modified the ff and p of pitch. When I took off again, the plane hit a tree. Yes, the elevator is invalid. I speculate that the ff of the pitch should be increased to be correct. I would like to ask if the new pid has a greater weight on ff. P only affects the speed of reaching the angle.

@tridge Looking forward to the next version update.

Good day everyone. I have had issues since I updated to 4.4.4 quadplane firmware on my MFE striver equipped with Pixhawk 6c and f9p holybro. Before i’ve been updated from 4.3.7, everything was working fine, but now when I’m trying to takeoff in QHOVER manually vehicle starts to spinning by YAW axis and performs unstable hovering causing a crash. Everything was recalibrated and still have no result.

Hello Tridge,
Wondering if you’d have some time to review the dataflash log from my recent quadplane flight that ended up in a crash. I have a video of the crash as well that can further help analyzing what went wrong. Let me know and I will upload both the log file and video for your kind advice.

Thanks
Regards
Osman

This was the first post by your user ID on this forum, so I don’t know how to find the log or crash report you are referring to. Where did you post it?

Tridge,
Kindly refer to my following post for the logs and related video

@Osman I answered on your separate post

Greetings @tridge,

I am having a weird problem with one of my MFE Fighters. It has Cube Orange+ running plane-4.4.4. The aircraft sometimes behaves like the airspeed sensor is defective or there is a pitch control issue. The aircraft exceeds set cruise speed and throttle percent varies rapidly in response to the airspeed when this occurs in AUTO mode. The aircraft then struggles to maintain level flight or reach target altitude of the next waypoint. Usually, switching the flight mode from Auto to loiter and letting the aircraft orbit for 2 minutes at the same altitude resolves the issue and I continue mission thereafter for another 1 hour without any problem. I have replaced airspeed sensor and the elevator servos but the issue comes and goes. Switching to loiter for two minutes just after the trasition phase always clears the problem.

I intentionally did not use the loiter today, just to see performance on a ramp as it flies the mission. The issue took another dimension with the aircraft exceeding a waypoint altitude by 40 meters. Thats a lot.

Air vs ground speed. Mission airspeed is 20m/s

Graph of Altitude vs airspeed

AoA vs Pitch vs Des. Pitch

Link to log file: 00000125.BIN

Please, I need help finding the root cause and fixing it. It has become too risky to operate, so I have grounded the aircraft till I find the root cause.

Thanks for looking into this.

I have just discovered that in the upgrade from v4.3 to v4.4 the TECS.iph and TECS.ith registers have disappeared.

Is this the case?

And if so, what is the procedure for setting TECS_PTCH_FF_K?

Thanks

@sidajili I think your key issues are:

  • THR_SLEW_RATE is too low at 10%, use the default of 100. With it set to 10 it means that a change in throttle over full range takes 10 seconds, which is far too long
  • your mission has extremely speed descents. For example, from WP 36 to 37 you’re asking for a 120m drop over a distance of 350m. That is more than 1:3 glide slope, which is very steep.

The combination of very slow throttle response with a very steep glide slope is what leads to the overspeed

TECS had a major update. We now have TECS, TEC2 and TEC3 messages.
https://ardupilot.org/plane/docs/logmessages.html#tecs
https://ardupilot.org/plane/docs/logmessages.html#tec2

most aircraft don’t need this, which is why it defaults to 0. It only takes effect when gliding, ie. when using the thermalling feature of ArduPilot

Thank you, Tridge. This was very helpful…well appreciated.

@tridge
Please, when will the stable version support the Remote ID transmitter modules such as Holybro?

Hey, i had a similar problem with my H750 SPRACINGH7EXTREME board.

The thing must have crashed, as there was no further logging past the freezing.

associated log:

@andypiper said this: “The log just stops, so it certainly crashed, Usually if its a watchdog there is another log after that gives the watch dog reason. You are running Plane - I have not tried that, I am not sure whether the low loop rate of plane is something to worry about, you might do better to run at a standard copter loop rate - e.g. 300 or 400 Hz”

Did you ever get it fixed?

Thank you!