Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. ESC Calibration issues

ESC Calibration issues

Scheduled Pinned Locked Moved Ask your questions right here!
29 Posts 2 Posters 7.7k Views 2 Watching
  • 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.
  • Riley DoveR Offline
    Riley DoveR Offline
    Riley Dove
    Contributor
    wrote on last edited by
    #21

    Looks like that worked.

    ~ # systemctl stop voxl-vision-px4
    ~ # voxl-configure-vision-px4 -f
    loading and updating config file with voxl-vision-px4 -c
    Error parsing config file before:
    /usr/bin/voxl-configure-vision-px4: line 120: 3072 Segmentation fault voxl-vision-px4 -c
    ^ don't worry about the segfault ^

    attempting to use camera configuration 3
    adding override_cam_id value=1 to /etc/snav/camera.downward.xml
    adding override_cam_id value=2 to /etc/snav/camera.stereo.xml
    reloading systemd services
    disabling all the snav services
    starting imu_app
    Created symlink from /etc/systemd/system/multi-user.target.wants/imu_app.service to /etc/systemd/system/imu_app.service.
    WARNING: Missing stereo calibration file. Follow instructions here to
    calibrate if you wish to use stereo visual obstacle avoidance.
    https://docs.modalai.com/docs/quickstarts/calibrate-cameras/

    DONE configuring ModalAI Vision Lib
    enabling voxl-vision-px4 systemd service
    Created symlink from /etc/systemd/system/multi-user.target.wants/voxl-vision-px4.service to /etc/systemd/system/voxl-vision-px4.service.
    starting voxl-vision-px4 systemd service
    DONE configuring voxl-vision-px4
    ~ # cat /etc/modalai/voxl-vision-px4.conf
    {
    "qgc_ip": "192.168.8.60",
    "en_localhost_mavlink_udp": true,
    "en_secondary_qgc": false,
    "secondary_qgc_ip": "192.168.1.214",
    "offboard_mode": "figure_eight",
    "en_vio": true,
    "en_voa": false,
    "en_send_vio_to_qgc": false,
    "en_send_voa_to_qgc": false,
    "en_adsb": false,
    "adsb_uart_bus": 7,
    "adsb_uart_baudrate": 57600,
    "px4_uart_bus": 5,
    "px4_uart_baudrate": 921600,
    "R_imu_to_body": [[0, 1, 0], [1, 0, 0], [0, 0, -1]],
    "T_imu_wrt_body": [0.068, -0.015, -0.008],
    "height_body_above_ground_m": 0.05,
    "T_stereo_wrt_body": [0.10, -0.04, 0.0],
    "land_on_tag_id": 0,
    "follow_tag_id": 0,
    "en_apriltag_fixed_frame": false,
    "fixed_apriltags": [{
    "tag_id": 0,
    "R_tag_to_fixed": [[0, -1, 0], [1, 0, 0], [0, 0, 1]],
    "T_tag_wrt_fixed": [0, 0, 0]
    }],
    "en_transform_mavlink_pos_setpoints_from_fixed_frame": true,
    "en_fixed_frame_pipe": false,
    "fixed_frame_filter_len": 5
    }
    ~ #

    I edited the QGC IP to my laptop's IP and QGC still doesnt see it. I will try from a different computer.

    1 Reply Last reply
    0
    • Riley DoveR Offline
      Riley DoveR Offline
      Riley Dove
      Contributor
      wrote on last edited by Riley Dove
      #22

      No luck on different computer. I just tried the ESC cal as well and no luck.

      1 Reply Last reply
      0
      • modaltbM Offline
        modaltbM Offline
        modaltb
        ModalAI Team
        wrote on last edited by
        #23

        What kind of computer are you using, Linux, Windows?

        If Windows, you likely need to configure the firewall (maybe easier to just disable the windows firewall for this test).

        You can use the USB connection straight to the blue connector to get a connection to QGC.

        But, if you have QGC running, the ESC calibration tool won't work because QGC will have taken ownership of the port.

        1 Reply Last reply
        0
        • Riley DoveR Offline
          Riley DoveR Offline
          Riley Dove
          Contributor
          wrote on last edited by
          #24

          I've been testing on a Macbook Pro. I can get QGC via the USB port, just not via Wifi. And the motors dont spin above minimum armed PWM.

          1 Reply Last reply
          0
          • modaltbM Offline
            modaltbM Offline
            modaltb
            ModalAI Team
            wrote on last edited by
            #25

            I just went through similar yesterday on a new board we're developing. PX4 is configured to expect a magnetometer, you'll want to set the sys_has_mag param to 0, and GPS_1_CONFIG to off/none via the QGC.

            I can get on a screen share after a bit if needed so just let me know if you want to wait till then.

            1 Reply Last reply
            0
            • Riley DoveR Offline
              Riley DoveR Offline
              Riley Dove
              Contributor
              wrote on last edited by
              #26

              I just did another test randomly while eating my lunch and it worked as expected. So I did a maiden and checked stabilize, althold, and position mode and all modes flew well. We have lots of snow here so cant test too much more outdoors.

              1 Reply Last reply
              0
              • modaltbM Offline
                modaltbM Offline
                modaltb
                ModalAI Team
                wrote on last edited by
                #27

                OK great!! Please holler if you hit any other snags.

                1 Reply Last reply
                0
                • Riley DoveR Offline
                  Riley DoveR Offline
                  Riley Dove
                  Contributor
                  wrote on last edited by
                  #28

                  Another snag... Seems like the voxl-vision-px4 is spotty at starting. I am trying to fly again and no luck. I ran the status command and the same failure as before.

                  1 Reply Last reply
                  0
                  • modaltbM Offline
                    modaltbM Offline
                    modaltb
                    ModalAI Team
                    wrote on last edited by
                    #29

                    Hi @Riley-Dove ,

                    Want to try to do a screen share tomorrow AM? I'll send an email to what's registered on this account.

                    Some of the errors looked like config file parsing, but the first one was truncated a bit.

                    If the device is in the failed currently, and you don't mind, you can throw the output of systemctl status voxl-vision-px4 -l here in preps.

                    Thanks, we'll figure out what's going on!

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    ModalAI
                    Categories Recent Tags ModalAI.com Docs
                    © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups