mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Sparky updates
This commit is contained in:
parent
d564b2f3a6
commit
626fffb712
4 changed files with 19 additions and 2 deletions
|
@ -48,7 +48,7 @@ void gyroUpdateSampleRate(uint32_t looptime, uint8_t lpf, uint8_t syncGyroToLoop
|
||||||
int minLooptime;
|
int minLooptime;
|
||||||
|
|
||||||
if (syncGyroToLoop) {
|
if (syncGyroToLoop) {
|
||||||
#if defined(SPRACINGF3) || defined(ALIENWIIF3) || defined(NAZE32PRO) || defined(STM32F3DISCOVERY) || defined(CHEBUZZF3) || defined(PORT103R) || defined(MOTOLAB)
|
#if defined(SPRACINGF3) || defined(ALIENWIIF3) || defined(NAZE32PRO) || defined(STM32F3DISCOVERY) || defined(CHEBUZZF3) || defined(PORT103R) || defined(MOTOLAB) || defined(SPARKY)
|
||||||
if (lpf == INV_FILTER_256HZ_NOLPF2) {
|
if (lpf == INV_FILTER_256HZ_NOLPF2) {
|
||||||
gyroSamplePeriod = 125;
|
gyroSamplePeriod = 125;
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,13 @@ const escHardware_t escHardware[ESC_COUNT] = {
|
||||||
{ GPIOA, 2 },
|
{ GPIOA, 2 },
|
||||||
{ GPIOA, 3 },
|
{ GPIOA, 3 },
|
||||||
{ GPIOA, 8 }
|
{ GPIOA, 8 }
|
||||||
|
#elif SPARKY
|
||||||
|
{ GPIOB, 15 },
|
||||||
|
{ GPIOB, 14 },
|
||||||
|
{ GPIOA, 8 },
|
||||||
|
{ GPIOB, 0 },
|
||||||
|
{ GPIOA, 6 },
|
||||||
|
{ GPIOA, 2 }
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ const mpu6050Config_t *selectMPU6050Config(void)
|
||||||
return &spRacingF3MPU6050Config;
|
return &spRacingF3MPU6050Config;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MOTOLAB
|
#if defined(MOTOLAB) || defined(SPARKY)
|
||||||
static const mpu6050Config_t MotolabF3MPU6050Config = {
|
static const mpu6050Config_t MotolabF3MPU6050Config = {
|
||||||
.gpioAHBPeripherals = RCC_AHBPeriph_GPIOA,
|
.gpioAHBPeripherals = RCC_AHBPeriph_GPIOA,
|
||||||
.gpioPort = GPIOA,
|
.gpioPort = GPIOA,
|
||||||
|
|
|
@ -28,6 +28,10 @@
|
||||||
|
|
||||||
#define USABLE_TIMER_CHANNEL_COUNT 11
|
#define USABLE_TIMER_CHANNEL_COUNT 11
|
||||||
|
|
||||||
|
// MPU6050 interrupts
|
||||||
|
#define EXTI15_10_CALLBACK_HANDLER_COUNT 1 // MPU data ready
|
||||||
|
#define USE_MPU_DATA_READY_SIGNAL
|
||||||
|
|
||||||
// MPU 9150 INT connected to PA15, pulled up to VCC by 10K Resistor, contains MPU6050 and AK8975 in single component.
|
// MPU 9150 INT connected to PA15, pulled up to VCC by 10K Resistor, contains MPU6050 and AK8975 in single component.
|
||||||
#define GYRO
|
#define GYRO
|
||||||
#define USE_GYRO_MPU6050
|
#define USE_GYRO_MPU6050
|
||||||
|
@ -151,6 +155,12 @@
|
||||||
#define WS2811_IRQ DMA1_Channel7_IRQn
|
#define WS2811_IRQ DMA1_Channel7_IRQn
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define USE_SERIAL_1WIRE
|
||||||
|
#define ESC_COUNT 6
|
||||||
|
#define S1W_TX_GPIO GPIOB
|
||||||
|
#define S1W_TX_PIN GPIO_Pin_6
|
||||||
|
#define S1W_RX_GPIO GPIOB
|
||||||
|
#define S1W_RX_PIN GPIO_Pin_7
|
||||||
|
|
||||||
#define SPEKTRUM_BIND
|
#define SPEKTRUM_BIND
|
||||||
// USART2, PA3
|
// USART2, PA3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue