mirror of https://github.com/ArduPilot/ardupilot
hwdef: backport CUAV-7-Nano hwdef defines
This commit is contained in:
parent
c61efecb04
commit
0cab92a806
|
@ -104,8 +104,8 @@ PC3 ADC1_3V3 ADC1 SCALE(1) ANALOG(13)
|
||||||
|
|
||||||
define HAL_BATT_VOLT_PIN 9
|
define HAL_BATT_VOLT_PIN 9
|
||||||
define HAL_BATT_CURR_PIN 8
|
define HAL_BATT_CURR_PIN 8
|
||||||
define HAL_BATT_VOLT_SCALE 10.1
|
define HAL_BATT_VOLT_SCALE 31.0
|
||||||
define HAL_BATT_CURR_SCALE 17.0
|
define HAL_BATT_CURR_SCALE 24.0
|
||||||
|
|
||||||
# SPI1 - IIM42652
|
# SPI1 - IIM42652
|
||||||
PA5 SPI1_SCK SPI1
|
PA5 SPI1_SCK SPI1
|
||||||
|
@ -239,11 +239,12 @@ PE4 LED_GREEN OUTPUT GPIO(91) LOW
|
||||||
PE5 LED_BLUE OUTPUT GPIO(92) LOW
|
PE5 LED_BLUE OUTPUT GPIO(92) LOW
|
||||||
|
|
||||||
# setup for "pixracer" RGB LEDs
|
# setup for "pixracer" RGB LEDs
|
||||||
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 90
|
define HAL_GPIO_A_LED_PIN 90
|
||||||
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 91
|
define HAL_GPIO_B_LED_PIN 91
|
||||||
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 92
|
define HAL_GPIO_C_LED_PIN 92
|
||||||
|
define HAL_GPIO_LED_ON 0
|
||||||
|
|
||||||
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1
|
define HAL_HAVE_PIXRACER_LED
|
||||||
|
|
||||||
# ID pins
|
# ID pins
|
||||||
PG0 HW_VER_REV_DRIVE OUTPUT LOW
|
PG0 HW_VER_REV_DRIVE OUTPUT LOW
|
||||||
|
|
Loading…
Reference in New Issue