Skip to content

Commit

Permalink
Add support for more compass chips
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity authored and Giacomo Pinagli committed Feb 2, 2018
1 parent 7181e58 commit 5970a28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/main/target/KAKUTEF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
# define USE_MAG_HMC5883
# define MAG_HMC5883_ALIGN CW180_DEG
# define USE_MAG_QMC5883
# define USE_MAG_MAG3110
# define USE_MAG_IST8310

# define USE_BARO
# define BARO_I2C_BUS BUS_I2C1
Expand Down Expand Up @@ -103,21 +105,21 @@
#define UART6_RX_PIN PC7
#define UART6_TX_PIN PC6

#ifdef KAKUTEF4V2 // Uart4 and Uart5 are fanned out on v2
# define USE_UART4 // Uart4 can be used for GPS or RunCam Split
#ifdef KAKUTEF4V2
# define USE_UART4
# define UART4_RX_PIN PA1
# define UART4_TX_PIN PA0

# define USE_UART5 //Uart5 can be used for ESC sensor
# define USE_UART5
# define UART5_RX_PIN PD2
# define UART5_TX_PIN NONE

// # define USE_SOFTSERIAL1 //M1~M4 and LedTrip can be redefined as Softserial
# define SERIAL_PORT_COUNT 7 //vcp, uart1, uart3, uart4, uart5, uart6, softSerial1
// # define USE_SOFTSERIAL1
# define SERIAL_PORT_COUNT 6
#else
// # define USE_SOFTSERIAL1
// # define USE_SOFTSERIAL2
# define SERIAL_PORT_COUNT 6 //vcp, uart1, uart3,, uart6, softSerial1, softSerial2
# define SERIAL_PORT_COUNT 4
#endif

#define USE_SPI
Expand Down
2 changes: 2 additions & 0 deletions src/main/target/KAKUTEF4/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ TARGET_SRC = \
drivers/compass/compass_ak8963.c \
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c \
drivers/compass/compass_mag3110.c \
drivers/compass/compass_ist8310.c \
drivers/max7456.c

0 comments on commit 5970a28

Please sign in to comment.