Skip to content

Commit

Permalink
cpn.inc: enable all supported features
Browse files Browse the repository at this point in the history
SW-159
  • Loading branch information
robertlong13 committed May 22, 2024
1 parent 9583d74 commit 63a2c83
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
21 changes: 21 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/cpn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,24 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 512
define HAL_PERIPH_ENABLE_RC_OUT
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_PERIPH_ARM_MONITORING_ENABLE 1

# enable GPS
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_GPS_PORT_DEFAULT -1
define HAL_PERIPH_ENABLE_NOTIFY

# enable Compass
define HAL_PERIPH_ENABLE_MAG
define AP_COMPASS_QMC5883P_ENABLED 1
COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
COMPASS IST8310 I2C:ALL_EXTERNAL:0x0E true ROTATION_NONE

# enable ADSB
define HAL_PERIPH_ENABLE_ADSB
define HAL_PERIPH_ADSB_PORT_DEFAULT -1
define HAL_PERIPH_ADSB_BAUD_DEFAULT 57600

#enable baro
define HAL_PERIPH_ENABLE_BARO
BARO MS56XX I2C:0:0x76
21 changes: 1 addition & 20 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixL496/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,12 @@ PB7 I2C4_SDA I2C4
undef I2C_ORDER
I2C_ORDER I2C4

# Reassign VSENSE pins
undef PA5
undef PA6
undef PB0
PA4 VSENSE1 ADC1 SCALE(1)
PA5 VSENSE2 ADC1 SCALE(1)
PA6 VSENSE3 ADC1 SCALE(1)

define HAL_PERIPH_ENABLE_MAG
define HAL_PERIPH_ENABLE_BARO
# enable ESC control
define HAL_WITH_ESC_TELEM 1

# enable GPS
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_GPS_PORT_DEFAULT 2

# default ADSB off by setting 0 baudrate
define HAL_PERIPH_ENABLE_ADSB
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_PERIPH_ADSB_BAUD_DEFAULT 57600

BARO MS56XX I2C:0:0x76
define AP_COMPASS_QMC5883P_ENABLED 1
COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180

undef HAL_PERIPH_ARM_MONITORING_ENABLE

define CAN_APP_NODE_NAME "org.ardupilot.CarbonixL496"

0 comments on commit 63a2c83

Please sign in to comment.