Skip to content

Commit

Permalink
boards/micoair/h743: remove osd in micoair743 config file
Browse files Browse the repository at this point in the history
Co-authored-by: Minderring <[email protected]>
  • Loading branch information
Minderring and Minderring authored Nov 15, 2024
1 parent 381c45b commit 29085b1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion boards/micoair/h743/default.px4board
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ CONFIG_DRIVERS_IMU_BOSCH_BMI088=y
CONFIG_DRIVERS_IMU_BOSCH_BMI270=y
CONFIG_COMMON_INS=y
CONFIG_COMMON_MAGNETOMETER=y
CONFIG_DRIVERS_OSD_ATXXXX=y
CONFIG_DRIVERS_PPS_CAPTURE=y
CONFIG_DRIVERS_PWM_OUT=y
CONFIG_COMMON_RC=y
Expand Down
2 changes: 1 addition & 1 deletion boards/micoair/h743/init/rc.board_defaults
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ param set-default SYS_HAS_MAG 1
param set-default PWM_MAIN_TIM0 -4
param set-default RC_INPUT_PROTO -1

param set-default IMU_GYRO_RATEMAX 2000
param set-default IMU_GYRO_CUTOFF 80
param set-default SYS_AUTOSTART 4001
param set-default MC_PITCHRATE_K 0.4
param set-default MC_ROLLRATE_K 0.35
Expand Down
2 changes: 1 addition & 1 deletion boards/micoair/h743/init/rc.board_extras
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#------------------------------------------------------------------------------

# enable onboard OSD chip
atxxxx start -s
# atxxxx start -s
6 changes: 3 additions & 3 deletions boards/micoair/h743/nuttx-config/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@

#define ADJ_SLEW_RATE(p) (((p) & ~GPIO_SPEED_MASK) | (GPIO_SPEED_2MHz))

#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1 /* PA6 */
#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1 /* PA7 */
#define GPIO_SPI1_SCK ADJ_SLEW_RATE(GPIO_SPI1_SCK_1) /* PA5 */
//#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1 /* PA6 */
//#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1 /* PA7 */
//#define GPIO_SPI1_SCK ADJ_SLEW_RATE(GPIO_SPI1_SCK_1) /* PA5 */

#define GPIO_SPI2_MISO GPIO_SPI2_MISO_2 /* PC2 */
#define GPIO_SPI2_MOSI GPIO_SPI2_MOSI_3 /* PC3 */
Expand Down
1 change: 0 additions & 1 deletion boards/micoair/h743/nuttx-config/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ CONFIG_STM32H7_SAVE_CRASHDUMP=y
CONFIG_STM32H7_SDMMC1=y
CONFIG_STM32H7_SERIALBRK_BSDCOMPAT=y
CONFIG_STM32H7_SERIAL_DISABLE_REORDERING=y
CONFIG_STM32H7_SPI1=y
CONFIG_STM32H7_SPI2=y
CONFIG_STM32H7_SPI2_DMA=y
CONFIG_STM32H7_SPI2_DMA_BUFFER=4096
Expand Down
3 changes: 0 additions & 3 deletions boards/micoair/h743/src/spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@


constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
initSPIBus(SPI::Bus::SPI1, {
initSPIDevice(DRV_OSD_DEVTYPE_ATXXXX, SPI::CS{GPIO::PortB, GPIO::Pin12}),
}),
initSPIBus(SPI::Bus::SPI2, {
initSPIDevice(DRV_GYR_DEVTYPE_BMI088, SPI::CS{GPIO::PortD, GPIO::Pin5}),
initSPIDevice(DRV_ACC_DEVTYPE_BMI088, SPI::CS{GPIO::PortD, GPIO::Pin4}),
Expand Down

0 comments on commit 29085b1

Please sign in to comment.