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

    Incorrect battery0 voltage on QGC

    Ask your questions right here!
    3
    5
    88
    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.
    • george kollamkulamG
      george kollamkulam
      last edited by

      Hi,

      I'm seeing incorrect battery0 voltage on QGC. Would appreciate your help in resolving this issue.

      I'm using the 2S Amprius battery packs on my Starling 2 and the battery parameters are attached below. Batt_params3.png Batt_params2.png Batt_params.png

      Thanks!

      Alex KushleyevA 1 Reply Last reply Reply Quote 0
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @george kollamkulam
        last edited by

        @george-kollamkulam , something seems fishy here.

        The Starling 2 drone has the VOXL Mini ESC, which acts as the APM (measures voltage and total current). The ESC sends this data to PX4 via UART together with regular ESC telelmetry.

        The Battery status packet is an uint16 with 0.001V resolution, so the maximum voltage it could report would be about 65V (2^16 millivolts).

        packet definition:
        https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/qc_esc_packet.h#L157

        packet parsing:
        https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/actuators/voxl_esc/voxl_esc.cpp#L577

        I suspect something else is going on. Maybe you need to choose a different Source for the battery monitoring (not Power Module)?

        Is this voltage 267.55V updating or just stuck at that value?

        Alex

        george kollamkulamG 1 Reply Last reply Reply Quote 0
        • george kollamkulamG
          george kollamkulam @Alex Kushleyev
          last edited by

          @Alex-Kushleyev Sorry for the delay.

          The voltage value seems to have decreased a little with time, but I don't think this is following the battery discharge trend. I started at 270.31 V just before take-off, and I was at 269.24 V after roughly 15 mins of flying. What could be the next steps to troubleshooting this issue?

          Thanks,
          George

          Eric KatzfeyE 1 Reply Last reply Reply Quote 0
          • Eric KatzfeyE
            Eric Katzfey ModalAI Team @george kollamkulam
            last edited by

            @george-kollamkulam In console can you do a listener battery_status to see what the PX4 topic has in it?

            Alex KushleyevA 1 Reply Last reply Reply Quote 0
            • Alex KushleyevA
              Alex Kushleyev ModalAI Team @Eric Katzfey
              last edited by

              @george-kollamkulam , also are you able to use voxl-esc tools to verify the voltage?

              You can run the following command, which will not actually spin the motors, but will communicate with the ESC and receive feedback:

              #stop px4
              systemctl stop voxl-px4
              
              cd /usr/share/modalai/voxl-esc-tools
              ./voxl-esc-spin.py --id 255 --power 0
              

              The script should run and print out the voltage reported by the ESC.

              Alex

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors