Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HWDEF : Squash of all Carbonix HWDEFs #174

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Tools/bootloaders/CarbonixF405-no-crystal_bl.bin
Binary file not shown.
1,790 changes: 1,790 additions & 0 deletions Tools/bootloaders/CarbonixF405-no-crystal_bl.hex

Large diffs are not rendered by default.

1,790 changes: 1,790 additions & 0 deletions Tools/bootloaders/CarbonixF405_bl.hex

Large diffs are not rendered by default.

1,755 changes: 1,755 additions & 0 deletions Tools/bootloaders/CarbonixL496_bl.hex

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 17
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_FUNCTION 56
OUT2_MIN 1000
OUT2_MAX 2000
OUT2_FUNCTION 61
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 26
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_FUNCTION 60
OUT2_MIN 200
OUT2_MAX 10000
OUT2_TRIM 5000
OUT2_FUNCTION 59
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CAN_NODE 11
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 33
OUT2_FUNCTION 0
ESC_PWM_TYPE 1
ESC_TELEM_PORT 1
ESC_APD_SERIAL_1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CAN_NODE 12
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 34
OUT2_FUNCTION 0
ESC_PWM_TYPE 1
ESC_TELEM_PORT 1
ESC_APD_SERIAL_1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CAN_NODE 23
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 35
OUT2_FUNCTION 0
ESC_PWM_TYPE 1
ESC_TELEM_PORT 1
ESC_APD_SERIAL_1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CAN_NODE 24
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 36
OUT2_FUNCTION 0
ESC_PWM_TYPE 1
ESC_TELEM_PORT 1
ESC_APD_SERIAL_1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CAN_NODE 15
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 37
OUT2_FUNCTION 0
ESC_PWM_TYPE 1
ESC_TELEM_PORT 1
ESC_APD_SERIAL_1 1
RNGFND_PORT 2
RNGFND1_TYPE 8
RNGFND1_MAX_CM 15800
RNGFND1_GNDCLEAR 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 27
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_REVERSED 1
OUT1_FUNCTION 56
OUT2_MIN 1000
OUT2_MAX 2000
OUT2_FUNCTION 61
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 16
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_FUNCTION 60
OUT2_MIN 200
OUT2_MAX 10000
OUT2_TRIM 5000
OUT2_FUNCTION 59
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 17
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_FUNCTION 56
OUT2_MIN 1000
OUT2_MAX 2000
OUT2_FUNCTION 61
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 26
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_FUNCTION 60
OUT2_MIN 200
OUT2_MAX 10000
OUT2_TRIM 5000
OUT2_FUNCTION 59
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CAN_NODE 11
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 33
OUT2_FUNCTION 0
OUT_BLH_MASK 3
OUT_BLH_OTYPE 6
OUT_BLH_POLES 28
OUT_BLH_EXTLM 1
ESC_PWM_TYPE 6
ESC_TELEM_PORT 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CAN_NODE 12
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 34
OUT2_FUNCTION 0
OUT_BLH_MASK 3
OUT_BLH_OTYPE 6
OUT_BLH_POLES 28
OUT_BLH_EXTLM 1
ESC_PWM_TYPE 6
ESC_TELEM_PORT 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CAN_NODE 23
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 35
OUT2_FUNCTION 0
OUT_BLH_MASK 3
OUT_BLH_OTYPE 6
OUT_BLH_POLES 28
OUT_BLH_EXTLM 1
ESC_PWM_TYPE 6
ESC_TELEM_PORT 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CAN_NODE 24
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 36
OUT2_FUNCTION 0
OUT_BLH_MASK 3
OUT_BLH_OTYPE 6
OUT_BLH_POLES 28
OUT_BLH_EXTLM 1
ESC_PWM_TYPE 6
ESC_TELEM_PORT 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CAN_NODE 15
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_TRIM 1000
OUT1_FUNCTION 37
OUT2_FUNCTION 0
OUT_BLH_MASK 3
OUT_BLH_OTYPE 6
OUT_BLH_POLES 28
OUT_BLH_EXTLM 0
ESC_PWM_TYPE 6
ESC_TELEM_PORT 1
RNGFND_PORT 2
RNGFND1_TYPE 8
RNGFND1_MAX_CM 15800
RNGFND1_GNDCLEAR 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 27
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_REVERSED 1
OUT1_FUNCTION 56
OUT2_MIN 1000
OUT2_MAX 2000
OUT2_FUNCTION 61
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 16
OUT1_MIN 1000
OUT1_MAX 2000
OUT1_FUNCTION 60
OUT2_MIN 200
OUT2_MAX 10000
OUT2_TRIM 5000
OUT2_FUNCTION 59
18 changes: 18 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/cubeorange.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# hw definition file for processing by chibios_hwdef.py

include ../CubeOrange/hwdef.dat
include ./features.inc

# The Carbonix carrier board (CX13042008) uses uninverted logic for these pins,
# as opposed to how the CubePilot carrier hardware is designed. We have to
# redefine these pin assignments.
undef PB5
undef PB7
PB5 VDD_BRICK_VALID INPUT PULLUP
PB7 VDD_BRICK2_VALID INPUT PULLUP

# Set board heater target to 60C
undef HAL_IMU_TEMP_DEFAULT
define HAL_IMU_TEMP_DEFAULT 60

USE_BOOTLOADER_FROM_BOARD CubeOrange
164 changes: 164 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
# Carbonix Common Defaults
AHRS_GPS_MINSATS,20
AHRS_GPS_USE,2
ARMING_MIS_ITEMS,22
ARMING_RUDDER,0
ARSPD_RATIO,1.6
ARSPD_SKIP_CAL,1
ARSPD_TYPE,8
ARSPD_USE,1
ARSPD_WIND_MAX,25
ARSPD_WIND_WARN,12
ARSPD2_RATIO,1.6
ARSPD2_SKIP_CAL,1
ARSPD2_TYPE,8
ARSPD2_USE,1
BRD_RTC_TYPES,7
CAM_AUTO_ONLY,1
CAM1_INTRVAL_MIN,0.8
CAM1_RELAY_ON,0
CAM1_SERVO_OFF,1000
CAM1_TYPE,2
CAN_D1_UC_OPTION,10
CAN_D2_UC_NODE,20
CAN_D2_UC_OPTION,10
CAN_LOGLEVEL,4
CAN_P1_DRIVER,1
CAN_P2_DRIVER,2
COMPASS_MOTCT,2
COMPASS_OPTIONS,1
CRASH_ACC_THRESH,40
CRASH_DETECT,1
EK3_AFFINITY,13
EK3_SRC1_POSZ,3
FENCE_AUTOENABLE,3
FENCE_ENABLE,1
FENCE_OPTIONS,0
FLTMODE3,10
FLTMODE4,19
FLTMODE5,7
FS_GCS_ENABL,1
FS_LONG_ACTN,1
FS_LONG_TIMEOUT,10
GPS_TYPE,9
GPS_TYPE2,9
GPS1_CAN_OVRIDE,19
GPS2_CAN_OVRIDE,29
INITIAL_MODE,11
INS_TCAL1_ENABLE,1
INS_TCAL2_ENABLE,1
INS_TCAL3_ENABLE,1
LAND_DISARMDELAY,3
LAND_THEN_NEUTRL,1
LEVEL_ROLL_LIMIT,6
LOG_DISARMED,1
LOG_FILE_DSRMROT,1
LOG_FILE_MB_FREE,5000 # Old logs on memory card with be deleted to create atleast 5GB memory.
LOG_REPLAY,1
MIN_GROUNDSPEED,8
PTCH_LIM_MAX_DEG,16
PTCH_LIM_MIN_DEG,-13
Q_A_THR_MIX_MAN,0.25
Q_A_THR_MIX_MAX,0.65
Q_A_THR_MIX_MIN,0.25
Q_ENABLE,1
Q_LAND_FINAL_ALT,10
Q_PILOT_SPD_DN,1.8
Q_PILOT_SPD_UP,2
Q_RC_SPEED,400
Q_RTL_ALT,45
Q_RTL_MODE,1
Q_TRAN_PIT_MAX,2
Q_TRANS_FAIL,30
Q_TRANSITION_MS,2000
Q_VFWD_ALT,5
Q_WVANE_HGT_MIN,5
Q_WVANE_TAKEOFF,0
RC_PROTOCOLS,520
RC1_MAX,2000
RC1_MIN,1000
RC10_MAX,2000
RC10_MIN,1000
RC11_MAX,2000
RC11_MIN,1000
RC12_MAX,2000
RC12_MIN,1000
RC13_MAX,2000
RC13_MIN,1000
RC14_MAX,2000
RC14_MIN,1000
RC15_MAX,2000
RC15_MIN,1000
RC16_MAX,2000
RC16_MIN,1000
RC2_MAX,2000
RC2_MIN,1000
RC2_REVERSED,1
RC3_MAX,2000
RC3_MIN,1000
RC4_MAX,2000
RC4_MIN,1000
RC5_MAX,2000
RC5_MIN,1000
RC6_MAX,2000
RC6_MIN,1000
RC7_MAX,2000
RC7_MIN,1000
RC8_MAX,2000
RC8_MIN,1000
RC9_MAX,2000
RC9_MIN,1000
RNGFND_LANDING,1
RNGFND1_MAX_CM,15800
RNGFND1_MIN_CM,5
RTL_AUTOLAND,2
RTL_RADIUS,200
SCHED_LOOP_RATE,200 # Loop Rate for Control in flight Controller set to 200Hz from 400Hz Results SW-171.
SCR_ENABLE,1
SCR_HEAP_SIZE,200000
SCR_VM_I_COUNT,100000
SERVO1_FUNCTION,33 # Motor 1
SERVO1_MAX,2000 # Setting all servos to 2000/1000, overriding in platforms if needed
SERVO1_MIN,1000
SERVO10_FUNCTION,4 # Aileron
SERVO10_MAX,2000
SERVO10_MIN,1000
SERVO11_FUNCTION,21 # Rudder
SERVO11_MAX,2000
SERVO11_MIN,1000
SERVO12_MAX,2000
SERVO12_MIN,1000
SERVO13_MAX,2000
SERVO13_MIN,1000
SERVO14_FUNCTION,0 # PLB Servo/GPIO
SERVO14_MAX,2000
SERVO14_MIN,1000
SERVO15_MAX,2000
SERVO15_MIN,1000
SERVO16_MAX,2000
SERVO16_MIN,1000
SERVO2_FUNCTION,34 # Motor 2
SERVO2_MAX,2000
SERVO2_MIN,1000
SERVO3_FUNCTION,35 # Motor 3
SERVO3_MAX,2000
SERVO3_MIN,1000
SERVO4_FUNCTION,36 # Motor 4
SERVO4_MAX,2000
SERVO4_MIN,1000
SERVO5_FUNCTION,70 # Pusher throttle
SERVO5_MAX,2000
SERVO5_MIN,1000
SERVO6_FUNCTION,19 # Elevator
SERVO6_MAX,2000
SERVO6_MIN,1000
SERVO7_FUNCTION,0 # PLB Servo/GPIO
SERVO7_MAX,2000
SERVO7_MIN,1000
SERVO8_FUNCTION,-1 # IGN relay GPIO
SERVO8_MAX,2000
SERVO8_MIN,1000
SERVO9_FUNCTION,94 # Scripting function for LEDs
SERVO9_MAX,2000
SERVO9_MIN,1000
TERRAIN_FOLLOW,72 # Enabled Auto and Guided (the command being executed must have the terrain frame though)
Loading
Loading