Skip to content

Commit

Permalink
hwdef: Volanti custom CAN node boards
Browse files Browse the repository at this point in the history
Added 9 different boards which are based on CarbonixF405 and have default. parm
  • Loading branch information
loki077 committed Nov 23, 2023
1 parent ef76c43 commit c7c1cd5
Show file tree
Hide file tree
Showing 27 changed files with 183 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CAN_NODE 17 @READONLY
OUT1_FUNCTION 61 @READONLY
OUT1_REVERSED 0 @READONLY
OUT2_FUNCTION 57 @READONLY
OUT2_REVERSED 0 @READONLY
COMPASS_ENABLE 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
18 changes: 18 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_PERIPH_ENABLE_ADSB
undef HAL_PERIPH_ADSB_PORT_DEFAULT
undef HAL_PERIPH_ADSB_BAUD_DEFAULT
undef HAL_PERIPH_ENABLE_MAG

define CAN_APP_NODE_NAME "CPN-17-Left-Tail"

# 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

# enable Compass
define HAL_PERIPH_ENABLE_MAG
COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180
7 changes: 7 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 26 @READONLY
OUT1_FUNCTION 60 @READONLY
OUT1_REVERSED 0 @READONLY
OUT2_FUNCTION 59 @READONLY
OUT2_MIN 200 @READONLY
OUT2_MAX 10000 @READONLY
OUT2_TRIM 5000 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
5 changes: 5 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME

define CAN_APP_NODE_NAME "VOl-CPN-26-Left-Wing"
7 changes: 7 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 11 @READONLY
OUT1_FUNCTION 33 @READONLY
OUT1_MIN 1000 @READONLY
OUT1_MAX 2000 @READONLY
OUT1_TRIM 1000 @READONLY
ESC_PWM_TYPE 1 @READONLY
ESC_TELEM_PORT 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
9 changes: 9 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM

define CAN_APP_NODE_NAME "VOl-CPN-11-Motor-1"

# enable ESC control
define HAL_WITH_ESC_TELEM 1
7 changes: 7 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 12 @READONLY
OUT1_FUNCTION 34 @READONLY
OUT1_MIN 1000 @READONLY
OUT1_MAX 2000 @READONLY
OUT1_TRIM 1000 @READONLY
ESC_PWM_TYPE 1 @READONLY
ESC_TELEM_PORT 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
9 changes: 9 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM

define CAN_APP_NODE_NAME "VOl-CPN-12-Motor-2"

# enable ESC control
define HAL_WITH_ESC_TELEM 1
7 changes: 7 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 23 @READONLY
OUT1_FUNCTION 35 @READONLY
OUT1_MIN 1000 @READONLY
OUT1_MAX 2000 @READONLY
OUT1_TRIM 1000 @READONLY
ESC_PWM_TYPE 1 @READONLY
ESC_TELEM_PORT 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
9 changes: 9 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM

define CAN_APP_NODE_NAME "VOl-CPN-23-Motor-3"

# enable ESC control
define HAL_WITH_ESC_TELEM 1
7 changes: 7 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 24 @READONLY
OUT1_FUNCTION 36 @READONLY
OUT1_MIN 1000 @READONLY
OUT1_MAX 2000 @READONLY
OUT1_TRIM 1000 @READONLY
ESC_PWM_TYPE 1 @READONLY
ESC_TELEM_PORT 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
9 changes: 9 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM

define CAN_APP_NODE_NAME "VOl-CPN-24-Motor-4"

# enable ESC control
define HAL_WITH_ESC_TELEM 1
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CAN_NODE 15 @READONLY
OUT1_FUNCTION 37 @READONLY
OUT1_MIN 1000 @READONLY
OUT1_MAX 2000 @READONLY
OUT1_TRIM 1000 @READONLY
ESC_PWM_TYPE 1 @READONLY
ESC_TELEM_PORT 1 @READONLY
BARO_ENABLE 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
30 changes: 30 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM
undef HAL_PERIPH_ENABLE_BATTERY
undef HAL_PERIPH_ENABLE_GPS
undef HAL_PERIPH_GPS_PORT_DEFAULT
undef HAL_PERIPH_ENABLE_NOTIFY
undef HAL_PERIPH_ENABLE_MAG
undef HAL_PROBE_EXTERNAL_I2C_COMPASSES
undef HAL_PERIPH_ENABLE_BARO

define CAN_APP_NODE_NAME "VOl-CPN-15-Pusher"

# enable ESC control
define HAL_WITH_ESC_TELEM 1

# enable GPS
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_GPS_PORT_DEFAULT 2
define HAL_PERIPH_ENABLE_NOTIFY

# enable Compass
define HAL_PERIPH_ENABLE_MAG
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
COMPASS IST8310 I2C:ALL_EXTERNAL:0x0E true ROTATION_NONE

#enable baro
define HAL_PERIPH_ENABLE_BARO
BARO MS56XX I2C:0:0x76
6 changes: 6 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CAN_NODE 27 @READONLY
OUT1_FUNCTION 61 @READONLY
OUT1_REVERSED 1 @READONLY
OUT2_FUNCTION 57 @READONLY
OUT2_REVERSED 0 @READONLY
COMPASS_ENABLE 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
18 changes: 18 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_PERIPH_ENABLE_ADSB
undef HAL_PERIPH_ADSB_PORT_DEFAULT
undef HAL_PERIPH_ADSB_BAUD_DEFAULT
undef HAL_PERIPH_ENABLE_MAG

define CAN_APP_NODE_NAME "VOl-CPN-27-Right-Tail"

# 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

# enable Compass
define HAL_PERIPH_ENABLE_MAG
COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180
7 changes: 7 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CAN_NODE 16 @READONLY
OUT1_FUNCTION 60 @READONLY
OUT1_REVERSED 0 @READONLY
OUT2_FUNCTION 59 @READONLY
OUT2_MIN 200 @READONLY
OUT2_MAX 10000 @READONLY
OUT2_TRIM 5000 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
5 changes: 5 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME

define CAN_APP_NODE_NAME "VOl-CPN-16-Right-Wing"

0 comments on commit c7c1cd5

Please sign in to comment.