Skip to content

Commit

Permalink
hwdef: Ottano 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 84f2a70 commit ef76c43
Show file tree
Hide file tree
Showing 27 changed files with 219 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-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/Ottano-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/Ottano-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 "OTT-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/Ottano-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/Ottano-LWing/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
20 changes: 20 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
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

define CAN_APP_NODE_NAME "OTT-CPN-26-Left-Wing"

# 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
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
ESC_APD_SERIAL_1 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
13 changes: 13 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM
undef HAL_PERIPH_ENABLE_ESC_APD
undef APD_ESC_INSTANCES

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

# enable ESC control
define HAL_WITH_ESC_TELEM 1
define HAL_PERIPH_ENABLE_ESC_APD 1
define APD_ESC_INSTANCES 1
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
ESC_APD_SERIAL_1 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
13 changes: 13 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM
undef HAL_PERIPH_ENABLE_ESC_APD
undef APD_ESC_INSTANCES

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

# enable ESC control
define HAL_WITH_ESC_TELEM 1
define HAL_PERIPH_ENABLE_ESC_APD 1
define APD_ESC_INSTANCES 1
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
ESC_APD_SERIAL_1 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
13 changes: 13 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM
undef HAL_PERIPH_ENABLE_ESC_APD
undef APD_ESC_INSTANCES

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

# enable ESC control
define HAL_WITH_ESC_TELEM 1
define HAL_PERIPH_ENABLE_ESC_APD 1
define APD_ESC_INSTANCES 1
8 changes: 8 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
ESC_APD_SERIAL_1 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
13 changes: 13 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_WITH_ESC_TELEM
undef HAL_PERIPH_ENABLE_ESC_APD
undef APD_ESC_INSTANCES

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

# enable ESC control
define HAL_WITH_ESC_TELEM 1
define HAL_PERIPH_ENABLE_ESC_APD 1
define APD_ESC_INSTANCES 1
5 changes: 5 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CAN_NODE 15 @READONLY
RNGFND_PORT 2 @READONLY
RNGFND1_TYPE 8 @READONLY
RNGFND1_MAX_CM 9500 @READONLY
BARO_ENABLE 1 @READONLY
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
19 changes: 19 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
undef HAL_PERIPH_ENABLE_RANGEFINDER
undef HAL_PERIPH_ENABLE_BATTERY
undef AP_BATTMON_FUELLEVEL_ANALOG_ENABLE

define CAN_APP_NODE_NAME "OTT-CPN-15-Pusher"

# enable Rangefinder
define HAL_PERIPH_ENABLE_RANGEFINDER 1

# enable Fuel monitor
define HAL_PERIPH_ENABLE_BATTERY 1
define AP_BATTMON_FUELLEVEL_ANALOG_ENABLE 1

#enable baro
define HAL_PERIPH_ENABLE_BARO
BARO MS56XX I2C:0:0x76
6 changes: 6 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-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/Ottano-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/Ottano-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 "OTT-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/Ottano-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/Ottano-RWing/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../CarbonixF405/hwdef-bl.dat
20 changes: 20 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
include ../CarbonixF405/hwdef.dat

undef CAN_APP_NODE_NAME
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

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

# 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

0 comments on commit ef76c43

Please sign in to comment.