From c7c1cd5123da8ede6b00928119bea50c3a7e0523 Mon Sep 17 00:00:00 2001 From: Lokesh-Ramina Date: Wed, 22 Nov 2023 15:44:50 -0800 Subject: [PATCH] hwdef: Volanti custom CAN node boards Added 9 different boards which are based on CarbonixF405 and have default. parm --- .../hwdef/Volanti-LTail/defaults.parm | 6 ++++ .../hwdef/Volanti-LTail/hwdef-bl.dat | 1 + .../hwdef/Volanti-LTail/hwdef.dat | 18 +++++++++++ .../hwdef/Volanti-LWing/defaults.parm | 7 +++++ .../hwdef/Volanti-LWing/hwdef-bl.dat | 1 + .../hwdef/Volanti-LWing/hwdef.dat | 5 ++++ .../hwdef/Volanti-M1/defaults.parm | 7 +++++ .../hwdef/Volanti-M1/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef.dat | 9 ++++++ .../hwdef/Volanti-M2/defaults.parm | 7 +++++ .../hwdef/Volanti-M2/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef.dat | 9 ++++++ .../hwdef/Volanti-M3/defaults.parm | 7 +++++ .../hwdef/Volanti-M3/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef.dat | 9 ++++++ .../hwdef/Volanti-M4/defaults.parm | 7 +++++ .../hwdef/Volanti-M4/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef.dat | 9 ++++++ .../hwdef/Volanti-M5/defaults.parm | 8 +++++ .../hwdef/Volanti-M5/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef.dat | 30 +++++++++++++++++++ .../hwdef/Volanti-RTail/defaults.parm | 6 ++++ .../hwdef/Volanti-RTail/hwdef-bl.dat | 1 + .../hwdef/Volanti-RTail/hwdef.dat | 18 +++++++++++ .../hwdef/Volanti-RWing/defaults.parm | 7 +++++ .../hwdef/Volanti-RWing/hwdef-bl.dat | 1 + .../hwdef/Volanti-RWing/hwdef.dat | 5 ++++ 27 files changed, 183 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/defaults.parm new file mode 100644 index 0000000000..55348d4106 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef.dat new file mode 100644 index 0000000000..33c727f61e --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LTail/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/defaults.parm new file mode 100644 index 0000000000..205ceae9e7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef.dat new file mode 100644 index 0000000000..80a891b6c4 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-LWing/hwdef.dat @@ -0,0 +1,5 @@ +include ../CarbonixF405/hwdef.dat + +undef CAN_APP_NODE_NAME + +define CAN_APP_NODE_NAME "VOl-CPN-26-Left-Wing" diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/defaults.parm new file mode 100644 index 0000000000..f660d1c687 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef.dat new file mode 100644 index 0000000000..4cce913a23 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M1/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/defaults.parm new file mode 100644 index 0000000000..862399eff7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef.dat new file mode 100644 index 0000000000..b7a5ea4bed --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M2/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/defaults.parm new file mode 100644 index 0000000000..560df9d8d8 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef.dat new file mode 100644 index 0000000000..2b1a7aa91c --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M3/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/defaults.parm new file mode 100644 index 0000000000..8cfac0205b --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef.dat new file mode 100644 index 0000000000..ceee592455 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M4/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/defaults.parm new file mode 100644 index 0000000000..ed20cf507d --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef.dat new file mode 100644 index 0000000000..5957be31a8 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-M5/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/defaults.parm new file mode 100644 index 0000000000..688e03fce6 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef.dat new file mode 100644 index 0000000000..97a92a01d9 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RTail/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/defaults.parm new file mode 100644 index 0000000000..383bf683f5 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef.dat new file mode 100644 index 0000000000..7217d2413b --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Volanti-RWing/hwdef.dat @@ -0,0 +1,5 @@ +include ../CarbonixF405/hwdef.dat + +undef CAN_APP_NODE_NAME + +define CAN_APP_NODE_NAME "VOl-CPN-16-Right-Wing"