Skip to content

Commit

Permalink
Update NEUTRONRCF407 (#370)
Browse files Browse the repository at this point in the history
* Update NEUTRONRCF407

USE_MAG is a cloud build option. When user would try another compass current configuration would need to include custom defines for other compass drivers.

* Update config.h

The board seems to have physical compass onboard so change it to allow other compass drivers when user decides to use another device. Likely the driver needs to be defined and or the ic2 address.
  • Loading branch information
haslinghuis authored Apr 1, 2024
1 parent fe3a56a commit 9abb22b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configs/NEUTRONRCF407/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@
#define USE_FLASH
#define USE_FLASH_M25P16
#define USE_MAX7456
#define USE_BARO
#define USE_BARO_DPS310
#ifndef USE_MAG
#define USE_MAG
#define USE_MAG_QMC5883
#endif

#define BEEPER_PIN PB4
#define MOTOR1_PIN PB0
Expand Down Expand Up @@ -102,8 +106,6 @@

#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define MAG_I2C_INSTANCE (I2CDEV_1)
#define USE_MAG
#define USE_BARO
#define BARO_I2C_INSTANCE (I2CDEV_1)

#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
Expand Down

0 comments on commit 9abb22b

Please sign in to comment.