• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    ESC telemetry rate

    ESCs
    3
    4
    92
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hanzichi
      last edited by 21 May 2024, 18:58

      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.

      A 1 Reply Last reply 21 May 2024, 19:36 Reply Quote 0
      • A
        Alex Kushleyev ModalAI Team @hanzichi
        last edited by 21 May 2024, 19:36

        @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

        0 1 Reply Last reply 21 May 2024, 19:44 Reply Quote 0
        • 0
          0x45 @Alex Kushleyev
          last edited by 21 May 2024, 19:44

          @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

          A 1 Reply Last reply 21 May 2024, 19:48 Reply Quote 0
          • A
            Alex Kushleyev ModalAI Team @0x45
            last edited by Alex Kushleyev 21 May 2024, 19:49 21 May 2024, 19:48

            @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

            1 Reply Last reply Reply Quote 0
            1 out of 4
            • First post
              1/4
              Last post
            Powered by NodeBB | Contributors