Skip to content

Commit 3fc1f58

Browse files
committed
updated HWDEF and README
1 parent 87abfec commit 3fc1f58

File tree

2 files changed

+52
-38
lines changed

2 files changed

+52
-38
lines changed

libraries/AP_HAL_ChibiOS/hwdef/Aerium-RadianF405/README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,19 @@ For detailed pin definitions and usage, refer to the [Radian documentation porta
4848

4949
## UART Port Mapping
5050

51-
| ArduPilot SERIALx | Connector | Function |
52-
|-------------------|-----------|----------------------------------------|
53-
| SERIAL1 | TELEM1 | Primary telemetry |
54-
| SERIAL2 | TELEM2 | Secondary telemetry or companion link |
55-
| SERIAL3 | GPS | GNSS module |
51+
| ArduPilot SERIALx | Connector | Function | DMA |
52+
|-------------------|-----------|-----------------------------------------|---------------|
53+
| SERIAL1 | TELEM1 | Primary telemetry | DMA Enabled |
54+
| SERIAL2 | TELEM2 | Secondary telemetry or companion link | DMA Enabled |
55+
| SERIAL3 | GPS | GNSS module | DMA Disabled |
56+
57+
## Alt Config
58+
the RadianF405 supports alt config that converts SERIAL2/TELEM2 to I2C port according to the following pinout:
59+
60+
| BRD_ALT_CONFIG=0 | BRD_ALT_CONFIG=1 |
61+
|-------------------|------------------|
62+
| TELEM2_TX | I2C2_SCL |
63+
| TELEM2_RX | I2C2_SDA |
5664

5765
## PWM / Servo Outputs
5866

@@ -62,14 +70,19 @@ For detailed pin definitions and usage, refer to the [Radian documentation porta
6270
- PWM 1-3 in group1
6371
- PWM 4-6 in group2
6472
- PWM 7,8 in group3
65-
6673
- Channels within the same group need to use the same output.
6774
- If any channel in a group uses DShot then all channels in the group need to use DShot.
6875

76+
The following outputs support Bi_Directional DShot:
77+
- PWM 1
78+
- PWM 2
79+
- PWM 3
80+
- PWM 6
81+
6982
## RC Input
7083

71-
- Supports PPM-Sum, S.Bus, and iBUS protocols via the RC input port
72-
- Additional receiver types can be connected via configurable serial ports
84+
- RC input is on the RC_IN pin which is ties to the UART5 RX pin.
85+
- It supports all ArduPilot compatible uni-directional protocols.
7386
- For setup instructions, consult the [ArduPilot RC systems guide](https://ardupilot.org/copter/docs/common-rc-systems.html)
7487

7588
## Power supply & Battery Monitoring
@@ -86,6 +99,23 @@ For detailed pin definitions and usage, refer to the [Radian documentation porta
8699
| 5V | from 5V BEC | 20W (4A) |
87100
| BAT | directly from battery | (5A) |
88101

102+
default paramters for battery monitors:
103+
| Paramter Name | Default Value |
104+
|------------------|----------------|
105+
|BATT_MONITOR | 4 |
106+
|BATT_VOLT_PIN | 10 |
107+
|BATT_CURR_PIN | 15 |
108+
|BATT_VOLT_SCALE | 1 |
109+
|BATT_CURR_SCALE | 1 |
110+
111+
| Paramter Name | Default Value |
112+
|------------------|----------------|
113+
|BATT2_MONITOR | 4 |
114+
|BATT2_VOLT_PIN | 12 |
115+
|BATT2_CURR_PIN | 11 |
116+
|BATT2_VOLT_SCALE | 1 |
117+
|BATT2_CURR_SCALE | 1 |
118+
89119
## Compass Configuration
90120

91121
- Includes dual onboard compass modules for redundancy

libraries/AP_HAL_ChibiOS/hwdef/Aerium-RadianF405/hwdef.dat

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ PC1 BATT2_CURRENT_SENS ADC1 SCALE(1)
7373
PC2 BATT2_VOLTAGE_SENS ADC1 SCALE(1)
7474

7575
# pwm outputs
76-
PB1 TIM1_CH3N TIM1 PWM(1) GPIO(50)
77-
PB0 TIM1_CH2N TIM1 PWM(2) GPIO(51)
78-
PA8 TIM1_CH1 TIM1 PWM(3) GPIO(52)
76+
PB1 TIM1_CH3N TIM1 PWM(1) GPIO(50) BDIR
77+
PB0 TIM1_CH2N TIM1 PWM(2) GPIO(51) BDIR
78+
PA8 TIM1_CH1 TIM1 PWM(3) GPIO(52) BDIR
7979
PA3 TIM2_CH4 TIM2 PWM(4) GPIO(53)
8080
PA2 TIM2_CH3 TIM2 PWM(5) GPIO(54)
81-
PA1 TIM2_CH2 TIM2 PWM(6) GPIO(55)
81+
PA1 TIM2_CH2 TIM2 PWM(6) GPIO(55) BDIR
8282
PC9 TIM8_CH4 TIM8 PWM(7) GPIO(56)
8383
PC8 TIM8_CH3 TIM8 PWM(8) GPIO(57)
8484

@@ -97,11 +97,11 @@ PB10 I2C2_SCL I2C2 ALT(1)
9797
PB11 I2C2_SDA I2C2 ALT(1)
9898

9999
# USART3 with BRD_ALT_CONFIG=0
100-
PB10 USART3_TX USART3 ALT(0)
101-
PB11 USART3_RX USART3 ALT(0)
100+
PB10 USART3_TX USART3
101+
PB11 USART3_RX USART3
102102

103-
PA10 USART1_RX USART1
104-
PA9 USART1_TX USART1
103+
PA10 USART1_RX USART1 NODMA
104+
PA9 USART1_TX USART1 NODMA
105105

106106
PC6 USART6_TX USART6
107107
PC7 USART6_RX USART6
@@ -120,8 +120,6 @@ PA11 OTG_FS_DM OTG1
120120
PA12 OTG_FS_DP OTG1
121121

122122
# USB setup
123-
USB_VENDOR 0x1021
124-
USB_PRODUCT 0x1090
125123
USB_STRING_MANUFACTURER "Aerium"
126124
USB_STRING_PRODUCT "RadianF405"
127125

@@ -144,22 +142,20 @@ BARO BMP280 SPI:bmp280
144142
BARO LPS2XH SPI:lps22h
145143

146144
# define default battery setup
145+
define HAL_BATT_MONITOR_DEFAULT 4
147146
define HAL_BATT_VOLT_PIN 10
148147
define HAL_BATT_CURR_PIN 15
148+
define HAL_BATT_VOLT_SCALE 1
149+
define HAL_BATT_CURR_SCALE 1
150+
151+
define HAL_BATT2_MONITOR_DEFAULT 4
149152
define HAL_BATT2_VOLT_PIN 12
150153
define HAL_BATT2_CURR_PIN 11
151-
define HAL_BATT_VOLT_SCALE 1
152154
define HAL_BATT2_VOLT_SCALE 1
153-
define HAL_BATT_CURR_SCALE 1
154155
define HAL_BATT2_CURR_SCALE 1
155156

156-
define CAN_D1_UC_POOL 1024
157-
158-
# For complementary channels to work we define this
159-
define STM32_PWM_USE_ADVANCED TRUE
160-
161157
# reduce max size of embedded params for apj_tool.py
162-
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
158+
define AP_PARAM_MAX_EMBEDDED_PARAM 512
163159

164160
# --------------------- save flash ----------------------
165161
include ../include/minimize_features.inc
@@ -170,9 +166,6 @@ define HAL_VISUALODOM_ENABLED 1
170166
undef MODE_GUIDED_NOGPS_ENABLED
171167
define MODE_GUIDED_NOGPS_ENABLED 1
172168

173-
undef GPS_MOVING_BASELINE
174-
define GPS_MOVING_BASELINE 1
175-
176169
undef AP_FOLLOW_ENABLED
177170
define AP_FOLLOW_ENABLED 1
178171

@@ -185,20 +178,11 @@ define AP_OPTICALFLOW_ENABLED 1
185178
undef MODE_FLOWHOLD_ENABLED
186179
define MODE_FLOWHOLD_ENABLED 1
187180

188-
undef HAL_BARO_WIND_COMP_ENABLED
189-
define HAL_BARO_WIND_COMP_ENABLED 1
190-
191181
undef HAL_PARACHUTE_ENABLED
192182
define HAL_PARACHUTE_ENABLED 1
193183

194-
undef HAL_PICCOLO_CAN_ENABLE
195-
define HAL_PICCOLO_CAN_ENABLE 1
196-
197184
undef HAL_ENABLE_DRONECAN_DRIVERS
198185
define HAL_ENABLE_DRONECAN_DRIVERS 1
199186

200187
undef AC_NAV_GUIDED
201188
define AC_NAV_GUIDED 1
202-
203-
undef WEATHERVANE_ENABLED
204-
define WEATHERVANE_ENABLED 1

0 commit comments

Comments
 (0)