Hello @austin.c ,
disable_active_freewheeling does parameter does not work, it was a compile-time option. However, let me revisit it and see if we can make it work with the param.
protection_voltage_limit_v parameter is a place-holder and is not yet implemented. We did experiment with backing off motor braking to prevent overvoltage, but that has not been enabled in the firmware. limiting the motor's response like that is also risky because the drone could crash because the motor response would not be following the commands.
On M0138 ESC, the IDs 1 and 2 report the temperature measured in the MCU itself (die temperature) and IDs 0 and 3 report temperature from the top and bottom of the ESC board, with discrete temperature sensors located near mosfets (you can see it in the diagrams here : https://docs.modalai.com/voxl-fpv-esc-datasheet/)
Disabling regenerative braking, also automatically disables active freewheeling (which is pretty much exactly the same thing). The primary benefit of active freewheeling (a.k.a. synchronous rectification) in drone ESC is actually not regenerating energy (which is negligible amount), but allowing the low-side Mosfet to conduct when the particular half bridge is off. If the active freewheeling is disabled, the re-circulating current flows through the diode, which has a much larger forward voltage drop than a conducting Mosfet. The re-circulating current flowing through the diode is a major contributor of heating of the ESC and that is one of the reasons that active freewheeling is important and is always enabled on our ESC. The temperature measurement results that you received are reasonable.
See the diagram explaining the current flow in PWM-off phase for both cases

By the way, something to think about - the voltage rise due to regenerative braking is not instant because all the capacitors in the system need to be charged up. The ESC reports the measured voltage and current (and even though they are low-pass filtered). you should be able to construct a model in the flight controller code and predict / prevent the voltage spikes. Normally, PX4 communicates with the ESC at 800hz which means you are getting 200hz feedback from each ESC (800hz voltage feedback and 200hz total current feedback). You can see if the current decreases and goes negative, it means the current is flowing out of the ESC into the rest of the system (being re-generated).
The filter time constants for the voltage and current in the ESC firwmware are as follows:
- voltage: 7.5ms (16.5ms rise time 10-90%)
- current: 1.87ms (4.1ms rise time 10-90%)
The plots in the following document are showing the filtered voltage / current : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-esc/-/blob/master/voxl-esc-tools/doc/regenerative_braking.md
Let me know if you want to play around with the over-voltage protection on the flight controller side and if you need any other details.
Alex

