mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed uart order for revo-mini
and setup right battery pins
This commit is contained in:
parent
fba962f7ff
commit
a6e0bb4ed0
|
@ -28,7 +28,7 @@ STDOUT_BAUDRATE 57600
|
|||
I2C_ORDER I2C1
|
||||
|
||||
# order of UARTs (and USB)
|
||||
UART_ORDER OTG1 USART1 USART3
|
||||
UART_ORDER OTG1 USART3 USART1
|
||||
|
||||
# rcinput is PC6, which is the 3rd "PWM IN" pin (the yellow wire on a
|
||||
# revolution board)
|
||||
|
@ -40,6 +40,13 @@ PC2 BATT_VOLTAGE_SENS ADC1 SCALE(1)
|
|||
PC1 BATT_CURRENT_SENS ADC1 SCALE(1)
|
||||
PC5 USB_SENSE ADC1
|
||||
|
||||
# define default battery setup
|
||||
define HAL_BATT_VOLT_PIN 12
|
||||
define HAL_BATT_CURR_PIN 11
|
||||
define HAL_BATT_VOLT_SCALE 10.1
|
||||
define HAL_BATT_CURR_SCALE 17.0
|
||||
|
||||
|
||||
PC0 SBUS_INVERT OUTPUT LOW
|
||||
|
||||
# LEDs
|
||||
|
|
Loading…
Reference in New Issue