From ef76c4304de68d24874fe52fcfe620f3238440b6 Mon Sep 17 00:00:00 2001 From: Lokesh-Ramina Date: Wed, 22 Nov 2023 16:12:17 -0800 Subject: [PATCH] hwdef: Ottano custom CAN node boards Added 9 different boards which are based on CarbonixF405 and have default. parm --- .../hwdef/Ottano-LTail/defaults.parm | 6 ++++++ .../hwdef/Ottano-LTail/hwdef-bl.dat | 1 + .../hwdef/Ottano-LTail/hwdef.dat | 18 +++++++++++++++++ .../hwdef/Ottano-LWing/defaults.parm | 7 +++++++ .../hwdef/Ottano-LWing/hwdef-bl.dat | 1 + .../hwdef/Ottano-LWing/hwdef.dat | 20 +++++++++++++++++++ .../hwdef/Ottano-M1/defaults.parm | 8 ++++++++ .../hwdef/Ottano-M1/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef.dat | 13 ++++++++++++ .../hwdef/Ottano-M2/defaults.parm | 8 ++++++++ .../hwdef/Ottano-M2/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef.dat | 13 ++++++++++++ .../hwdef/Ottano-M3/defaults.parm | 8 ++++++++ .../hwdef/Ottano-M3/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef.dat | 13 ++++++++++++ .../hwdef/Ottano-M4/defaults.parm | 8 ++++++++ .../hwdef/Ottano-M4/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef.dat | 13 ++++++++++++ .../hwdef/Ottano-M5/defaults.parm | 5 +++++ .../hwdef/Ottano-M5/hwdef-bl.dat | 1 + .../AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef.dat | 19 ++++++++++++++++++ .../hwdef/Ottano-RTail/defaults.parm | 6 ++++++ .../hwdef/Ottano-RTail/hwdef-bl.dat | 1 + .../hwdef/Ottano-RTail/hwdef.dat | 18 +++++++++++++++++ .../hwdef/Ottano-RWing/defaults.parm | 7 +++++++ .../hwdef/Ottano-RWing/hwdef-bl.dat | 1 + .../hwdef/Ottano-RWing/hwdef.dat | 20 +++++++++++++++++++ 27 files changed, 219 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/hwdef.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/defaults.parm new file mode 100644 index 0000000000..55348d4106 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-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/Ottano-LTail/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LTail/hwdef.dat new file mode 100644 index 0000000000..78429b18e1 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-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 "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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/defaults.parm new file mode 100644 index 0000000000..205ceae9e7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-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/Ottano-LWing/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef.dat new file mode 100644 index 0000000000..dedb1b77ec --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-LWing/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/defaults.parm new file mode 100644 index 0000000000..4b2c5a5903 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef.dat new file mode 100644 index 0000000000..605e77046d --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M1/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/defaults.parm new file mode 100644 index 0000000000..8010d5787b --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef.dat new file mode 100644 index 0000000000..2cf5c3039c --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M2/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/defaults.parm new file mode 100644 index 0000000000..6b4f528c51 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef.dat new file mode 100644 index 0000000000..3cc61799e4 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M3/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/defaults.parm new file mode 100644 index 0000000000..086bbec576 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef.dat new file mode 100644 index 0000000000..7c03fc2014 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M4/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/defaults.parm new file mode 100644 index 0000000000..a645d996a4 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/defaults.parm @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef.dat new file mode 100644 index 0000000000..b596a9d3a2 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-M5/hwdef.dat @@ -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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/defaults.parm new file mode 100644 index 0000000000..688e03fce6 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-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/Ottano-RTail/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RTail/hwdef.dat new file mode 100644 index 0000000000..321ae5e1dd --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-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 "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 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/defaults.parm new file mode 100644 index 0000000000..383bf683f5 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-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/Ottano-RWing/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef-bl.dat new file mode 100644 index 0000000000..fd03ee94c7 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CarbonixF405/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef.dat new file mode 100644 index 0000000000..a98d586e94 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/Ottano-RWing/hwdef.dat @@ -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