ESC telemetry rate
-
Hi - I'm running the 4in1 mini connected to px4. I have the esc and battery status message and I was wondering if the ESC telemetry rate can be increased. I can increase it on the px4 side, but that doesn't increase the rate at which the ESC is actually reporting. It seems to be set at 5-10Hz. Thanks in advance.
-
@hanzichi this is currently hardcoded to 10hz here : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.hpp#L240
you could change it to a higher update rate, but you would need to re-build PX4 for voxl2.
Perhaps there should be a param for this.. (note to self).
Alex
-
@Alex-Kushleyev What you mentioned is modifying the ESC telemetry rate from the PX4 side. I think what @hanzichi was looking for is the rate at which the ESC produces ESC_PACKET_TYPE_FB_POWER_STATUS packet to PX4. I would be great if this was a parameter in the voxl-esc-tools that are uploaded directly to the esc
-
@0x45 , each of the 4 ESCs sends back telemetry to PX4 at 1/4 of the update rate of PX4. On voxl2, the PX4 update rate is 800hz, so each ESC channel sends back telemetry at 200hz (round robin fashion). Only one of the four ESC channels actually measures current on the 4-in-1 mini and FPV ESCs, so you will have the current update (and hence the battery status) received at 200hz, but px4 is throttling publishing of battery status to 10hz.
Alex