mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
401e5c2073
add support for sampling GPIO pins using timer don't restart pwm group when not doing bi-dir fix hwdef generation preproc for TIM DMA decode telemetry at the start of the dshot cycle calculate dshot pulse separation correctly and ensure we output rapidly enough calculate dshot min periods and timeouts correctly refactor dshot_send() into dshot_send_groups() use bi-dir dshot channel mask selectively enable bi-dir RC Channels process bi-dir mask correctly when allocating DMA channels allow UP and CH DMA channel sharing optionally enable bidir vars in hwdef. enable bi-dir dshot in KakuteF7Mini enable bi-dir dshot in OmnibusF4Pro enable bi-dir dshot in OmnibusNanoV6 enable bi-dir dshot in MatekF405 enable bi-dir dshot in fmuv5 enable bi-dir dshot in fmuv3 enable bi-dir dshot in OmnibusF7V2 enable bi-dir dshot in OmnibusNanoV6 enable bi-dir dshot in CubeOrange enable bi-dir dshot in Pixracer enable bi-dir dshot in mRoPixracerPro Co-authored-by: bugobliterator <siddharthbharatpurohit@gmail.com>
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
# hw definition file for processing by chibios_hwdef.py
|
|
# for Pixhawk1-1M, based on Pixhawk1
|
|
|
|
|
|
include ../fmuv3-bdshot/hwdef.dat
|
|
|
|
# define the IMU types to probe. You can list more IMUs than you
|
|
# actually have. The syntax for IMU declarations is:
|
|
# IMU DriverName DeviceDeclarations Arguments
|
|
# the DriverName is the C++ name of the driver in AP_InertialSensor
|
|
# the DeviceDeclarations are either SPI or I2C
|
|
# for SPI the format is SPI:devicename where devicename comes from the
|
|
# SPIDEV table above
|
|
# for I2C the format is I2C:BusNum:BusAddr7bit, for example I2C:0:0x1e
|
|
#
|
|
# for fmuv3 we normally have two IMUs, one is a mpu6000 with a single SPI CS
|
|
# line. The other is a LSM303D/L3GD20 which uses the LSM9DS0 driver,
|
|
# and two SPIDEV endpoints, one for gyro, one for accel/mag
|
|
|
|
IMU Invensense SPI:mpu6000 ROTATION_ROLL_180
|
|
IMU LSM9DS0 SPI:lsm9ds0_g SPI:lsm9ds0_am ROTATION_ROLL_180 ROTATION_ROLL_180_YAW_270 ROTATION_PITCH_180
|
|
|
|
# define the barometers to probe with BARO lines. These follow the
|
|
# same format as IMU lines
|
|
BARO MS56XX SPI:ms5611
|
|
|
|
# probe for two mags.
|
|
# note that the number of arguments and meanings for compass driver
|
|
# declarations is driver dependent. The HMC5843 driver takes two
|
|
# arguments, the first for whether the compass is external and the
|
|
# second the orientation. The LSM303D driver doesn't take any arguments
|
|
COMPASS HMC5843 SPI:hmc5843 false ROTATION_PITCH_180
|
|
COMPASS LSM303D SPI:lsm9ds0_am ROTATION_NONE
|
|
|
|
# also probe for external compasses
|
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
|
|
|
FLASH_SIZE_KB 1024
|
|
define HAL_MINIMIZE_FEATURES 1
|
|
undef STORAGE_FLASH_PAGE
|