mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
HAL_ChibiOS: add CubePurple/PH2Slim board config
This commit is contained in:
parent
9467e0fa04
commit
8a64876eb2
8
libraries/AP_HAL_ChibiOS/hwdef/CubePurple/defaults.parm
Normal file
8
libraries/AP_HAL_ChibiOS/hwdef/CubePurple/defaults.parm
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# setup correct defaults for battery monitoring for cube power brick
|
||||||
|
BATT2_CURR_PIN 14
|
||||||
|
BATT2_VOLT_PIN 13
|
||||||
|
BATT_AMP_PERVLT 39.877
|
||||||
|
BATT_VOLT_MULT 12.02
|
||||||
|
BATT2_AMP_PERVLT 39.877
|
||||||
|
BATT2_VOLT_MULT 12.02
|
||||||
|
BRD_TYPE 6
|
18
libraries/AP_HAL_ChibiOS/hwdef/CubePurple/hwdef-bl.dat
Normal file
18
libraries/AP_HAL_ChibiOS/hwdef/CubePurple/hwdef-bl.dat
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# hw definition file for processing by chibios_hwdef.py
|
||||||
|
# for The CUBE Black and the Cube Purple hardware
|
||||||
|
# this is based on fmuv3, but with vendor specific USB IDs
|
||||||
|
|
||||||
|
include ../fmuv3/hwdef-bl.dat
|
||||||
|
|
||||||
|
# USB setup
|
||||||
|
USB_VENDOR 0x2DAE # ONLY FOR USE BY HEX! NOBODY ELSE
|
||||||
|
USB_PRODUCT 0x1005
|
||||||
|
USB_STRING_MANUFACTURER "Hex/ProfiCNC"
|
||||||
|
USB_STRING_PRODUCT "CubePurple-BL"
|
||||||
|
USB_STRING_SERIAL "%SERIAL%"
|
||||||
|
|
||||||
|
PA0 GPS_PIN1 OUTPUT LOW PULLDOWN
|
||||||
|
PA1 GPS_PIN2 OUTPUT LOW PULLDOWN
|
||||||
|
PB8 GPS_PIN3 OUTPUT LOW PULLDOWN
|
||||||
|
PB9 GPS_PIN4 OUTPUT LOW PULLDOWN
|
||||||
|
PB5 GPS_PIN5 OUTPUT LOW PULLDOWN
|
18
libraries/AP_HAL_ChibiOS/hwdef/CubePurple/hwdef.dat
Normal file
18
libraries/AP_HAL_ChibiOS/hwdef/CubePurple/hwdef.dat
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# hw definition file for processing by chibios_hwdef.py
|
||||||
|
# for The CUBE Black and the Cube Purple hardware
|
||||||
|
# this is based on fmuv3, but with vendor specific USB IDs
|
||||||
|
|
||||||
|
include ../fmuv3/hwdef.dat
|
||||||
|
|
||||||
|
# USB setup
|
||||||
|
USB_VENDOR 0x2DAE # ONLY FOR USE BY HEX! NOBODY ELSE
|
||||||
|
USB_PRODUCT 0x1015
|
||||||
|
USB_STRING_MANUFACTURER "Hex/ProfiCNC"
|
||||||
|
USB_STRING_PRODUCT "CubePurple"
|
||||||
|
USB_STRING_SERIAL "%SERIAL%"
|
||||||
|
|
||||||
|
# remap PB0/1 as ADC's
|
||||||
|
undef PB0
|
||||||
|
undef PB1
|
||||||
|
PB0 PB0_ADC ADC1 SCALE(1)
|
||||||
|
PB1 PB1_ADC ADC1 SCALE(1)
|
Loading…
Reference in New Issue
Block a user