hwdef.dat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # hw definition file for processing by chibios_hwdef.py
  2. # for pixhawk1, based on fmuv3
  3. include ../fmuv3/hwdef.dat
  4. # define the IMU types to probe. You can list more IMUs than you
  5. # actually have. The syntax for IMU declarations is:
  6. # IMU DriverName DeviceDeclarations Arguments
  7. # the DriverName is the C++ name of the driver in AP_InertialSensor
  8. # the DeviceDeclarations are either SPI or I2C
  9. # for SPI the format is SPI:devicename where devicename comes from the
  10. # SPIDEV table above
  11. # for I2C the format is I2C:BusNum:BusAddr7bit, for example I2C:0:0x1e
  12. #
  13. # for fmuv3 we normally have two IMUs, one is a mpu6000 with a single SPI CS
  14. # line. The other is a LSM303D/L3GD20 which uses the LSM9DS0 driver,
  15. # and two SPIDEV endpoints, one for gyro, one for accel/mag
  16. IMU Invensense SPI:mpu6000 ROTATION_ROLL_180
  17. IMU LSM9DS0 SPI:lsm9ds0_g SPI:lsm9ds0_am ROTATION_ROLL_180 ROTATION_ROLL_180_YAW_270 ROTATION_PITCH_180
  18. # define the barometers to probe with BARO lines. These follow the
  19. # same format as IMU lines
  20. BARO MS56XX SPI:ms5611
  21. # probe for two mags.
  22. # note that the number of arguments and meanings for compass driver
  23. # declarations is driver dependent. The HMC5843 driver takes two
  24. # arguments, the first for whether the compass is external and the
  25. # second the orientation. The LSM303D driver doesn't take any arguments
  26. COMPASS HMC5843 SPI:hmc5843 false ROTATION_PITCH_180
  27. COMPASS LSM303D SPI:lsm9ds0_am ROTATION_NONE
  28. # also probe for external compasses
  29. define HAL_PROBE_EXTERNAL_I2C_COMPASSES