2018-12-01 01:04:50 -04:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
2019-11-07 17:56:21 -04:00
|
|
|
# for stock Pixhawk 2 cube, or the hex CUBE Black in a 3DR Solo
|
|
|
|
# this is based on the FMUv3 hwdef, with Solo's required parameter defaults
|
|
|
|
# do not use this hwdef for any other vehicle or configuration
|
2018-12-01 01:04:50 -04:00
|
|
|
|
2019-04-28 08:23:19 -03:00
|
|
|
include ../fmuv3/hwdef.dat
|
|
|
|
|
2021-11-29 01:21:30 -04:00
|
|
|
define HAL_CHIBIOS_ARCH_CUBE 1
|
|
|
|
|
2019-09-27 17:58:51 -03:00
|
|
|
env OPTIMIZE -O2
|
2019-04-28 08:23:19 -03:00
|
|
|
|
|
|
|
SPIDEV icm20948_ext SPI4 DEVID1 MPU_EXT_CS MODE3 4*MHZ 8*MHZ
|
|
|
|
SPIDEV icm20602_ext SPI4 DEVID3 GYRO_EXT_CS MODE3 4*MHZ 8*MHZ
|
2018-12-01 01:04:50 -04:00
|
|
|
|
|
|
|
# pull Solo's default parameters from /Tools/Frame_params
|
2019-11-07 17:56:21 -04:00
|
|
|
# these are parameters the Solo requires for proper operation that are different from the copter defaults.
|
|
|
|
env DEFAULT_PARAMETERS 'Tools/Frame_params/Solo_Copter-4.param'
|
2019-05-29 22:16:32 -03:00
|
|
|
|
2020-12-23 22:02:11 -04:00
|
|
|
# three IMUs, but allow for different variants. First two IMUs are
|
2019-05-29 22:16:32 -03:00
|
|
|
# isolated, 3rd isn't
|
|
|
|
IMU Invensense SPI:mpu9250_ext ROTATION_PITCH_180
|
|
|
|
|
|
|
|
# the 3 rotations for the LSM9DS0 driver are for the accel, the gyro
|
2020-12-23 22:02:11 -04:00
|
|
|
# and the H variant of the gyro
|
2019-05-29 22:16:32 -03:00
|
|
|
IMU LSM9DS0 SPI:lsm9ds0_ext_g SPI:lsm9ds0_ext_am ROTATION_ROLL_180_YAW_270 ROTATION_ROLL_180_YAW_90 ROTATION_ROLL_180_YAW_90
|
|
|
|
|
|
|
|
# 3rd non-isolated IMU
|
|
|
|
IMU Invensense SPI:mpu9250 ROTATION_YAW_270
|
|
|
|
|
|
|
|
# alternative IMU set for newer cubes
|
|
|
|
IMU Invensense SPI:icm20602_ext ROTATION_ROLL_180_YAW_270
|
|
|
|
IMU Invensensev2 SPI:icm20948_ext ROTATION_PITCH_180
|
|
|
|
IMU Invensensev2 SPI:icm20948 ROTATION_YAW_270
|
|
|
|
|
|
|
|
define HAL_DEFAULT_INS_FAST_SAMPLE 1
|
|
|
|
|
|
|
|
# two baros
|
|
|
|
BARO MS56XX SPI:ms5611_ext
|
|
|
|
BARO MS56XX SPI:ms5611
|
|
|
|
|
|
|
|
# two compasses. First is in the LSM303D
|
|
|
|
COMPASS LSM303D SPI:lsm9ds0_ext_am ROTATION_YAW_270
|
|
|
|
# 2nd compass is part of the 2nd invensense IMU
|
|
|
|
COMPASS AK8963:probe_mpu9250 1 ROTATION_YAW_270
|
|
|
|
|
|
|
|
# compass as part of ICM20948 on newer cubes
|
|
|
|
COMPASS AK09916:probe_ICM20948 0 ROTATION_ROLL_180_YAW_90
|
|
|
|
|
|
|
|
# also probe for external compasses
|
|
|
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
2021-06-09 14:31:32 -03:00
|
|
|
|
|
|
|
define HAL_OREO_LED_ENABLED 1
|
2021-10-15 18:22:45 -03:00
|
|
|
define HAL_IMU_TEMP_MARGIN_LOW_DEFAULT 5
|