fix target.h
#define GEPRCF411
-#define F4
-#define F411
-
//PORTS
#define SPI_PORTS \
SPI1_PA5PA6PA7 \
#define BUZZER_PIN PIN_B2
//GYRO
-#define MPU6XXX_SPI_PORT SPI_PORT1
-#define MPU6XXX_NSS PIN_A4
-#define MPU6XXX_INT PIN_A1
+#define GYRO_SPI_PORT SPI_PORT1
+#define GYRO_NSS PIN_A4
+#define GYRO_INT PIN_A1
#define GYRO_ORIENTATION GYRO_ROTATE_90_CCW
-#define USE_DUMMY_I2C
//RADIO
#ifdef SERIAL_RX
#define RX_USART USART_PORT2
-#define SOFTSPI_NONE
#endif
// OSD
//VOLTAGE DIVIDER
-#define BATTERYPIN PIN_B0
-#define BATTERY_ADC_CHANNEL ADC_Channel_8
-#define VOLTAGE_DIVIDER_R1 10000
-#define VOLTAGE_DIVIDER_R2 1000
-
-#define ADC_REF_VOLTAGE 3.3
+#define VBAT_PIN PIN_B0
+#define VBAT_DIVIDER_R1 10000
+#define VBAT_DIVIDER_R2 1000
#define IBAT_PIN PIN_B1
#define IBAT_SCALE 179
