[Documentation] [TitleIndex] [WordIndex

Use Pixhawk in AGV

Contents

Introduction

This tutorials shows how to config Pixhawk to integrate in an AGV. It permits to get information of the device (IMU and gyroscope) througth MAVLINK protocol using the package mavros.

Device Setup

Install QGroundControl

For latest firmware versions, modemmanager has to be removed

Flash firmware

QGroundControl

Configure the following parameters:

Sensor calibration

Using QGroundControl:

  1. Connect the device (using the USB port) and go to the sensor window.
  2. Calibrate the desired sensors (gyroscope, accelerometer and compass) with Autopilot orientation set to ROTATION_NONE, following the instructions.
  3. Go to Setup->Parameters->Sensor Calibration, and set the SENS_BOARD_ROT parameter . Check here for more details https://pixhawk.org/sensor_orientation

    • For SummitXL, normally the values are:
      • Left side -> roll 90º -> value 16

      • Right side -> roll 270º -> value 20

  4. Position the PIXHAWK on the robot and start the “Level Horizon” calibration, in order to correct the misalignments.

ROS packages configuration

Troubleshooting

  1. The device is not recognized when plugged → Needs to set proper permissions to the port:

    sudo chmod 666 /dev/ttyACM0 (sets the proper permission ) sudo usermod -a -G dialout name (adds your user to the dialout-group . Replace name with your account name and do not forget to logout-login)

  2. The firmware upgrade cannot be performed in QgroundControl: sudo apt-get remove modemmanager (modemmanager tends to occupy a device only briefly, but it's initial tests make trouble for any firmware upgrade software that reboots the pixhawk)

  3. The device shows drift. Note that the device is sensitive to temperature changes and proximity to magnetic fields or metal parts.

    • -If the temperature close to the device changes dramatically, the gyros will show a considerably drift that will be integrated in the robot orientation with independence of the used filter.
    • -If the device is mounted close to magnetic fields or metal parts, the magnetometers won't measure correctly.
    Note that temperature stability is more important, as magnetometers are not used in the default configuration and won't be used by most of the customers.

2024-11-23 13:00