mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
FuriousFPV RacePIT target updates
This commit is contained in:
parent
078b25c565
commit
f25c5dfcfa
3 changed files with 60 additions and 55 deletions
|
@ -27,12 +27,16 @@
|
||||||
|
|
||||||
#include "telemetry/telemetry.h"
|
#include "telemetry/telemetry.h"
|
||||||
|
|
||||||
|
#include "pg/pinio.h"
|
||||||
#include "pg/piniobox.h"
|
#include "pg/piniobox.h"
|
||||||
|
|
||||||
void targetConfiguration(void)
|
void targetConfiguration(void)
|
||||||
{
|
{
|
||||||
telemetryConfigMutable()->halfDuplex = false;
|
telemetryConfigMutable()->halfDuplex = false;
|
||||||
|
|
||||||
|
pinioConfigMutable()->config[1] = PINIO_CONFIG_OUT_INVERTED | PINIO_CONFIG_MODE_OUT_PP;
|
||||||
|
|
||||||
pinioBoxConfigMutable()->permanentId[0] = 40;
|
pinioBoxConfigMutable()->permanentId[0] = 40;
|
||||||
|
pinioBoxConfigMutable()->permanentId[1] = 41;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -30,13 +30,14 @@
|
||||||
|
|
||||||
/*------------BEEPER---------------*/
|
/*------------BEEPER---------------*/
|
||||||
#define USE_BEEPER
|
#define USE_BEEPER
|
||||||
#define BEEPER_PIN PB3
|
#define BEEPER_PIN PC3
|
||||||
#define BEEPER_INVERTED
|
#define BEEPER_INVERTED
|
||||||
/*---------------------------------*/
|
/*---------------------------------*/
|
||||||
|
|
||||||
/*---------- VTX POWER SWITCH---------*/
|
/*---------- VTX POWER SWITCH---------*/
|
||||||
#define USE_PINIO
|
#define USE_PINIO
|
||||||
#define PINIO1_PIN PC0 // VTX power switcher
|
#define PINIO1_PIN PC0 // VTX power switcher
|
||||||
|
#define PINIO2_PIN PC8 // 2xCamera switcher
|
||||||
#define USE_PINIOBOX
|
#define USE_PINIOBOX
|
||||||
|
|
||||||
/*------------SENSORS--------------*/
|
/*------------SENSORS--------------*/
|
||||||
|
@ -156,7 +157,7 @@
|
||||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||||
#define SERIALRX_UART SERIAL_PORT_USART3
|
#define SERIALRX_UART SERIAL_PORT_USART3
|
||||||
#define DEFAULT_FEATURES ( FEATURE_LED_STRIP | FEATURE_OSD | FEATURE_MOTOR_STOP )
|
#define DEFAULT_FEATURES FEATURE_OSD
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
|
|
|
@ -11,7 +11,7 @@ defaults nosave
|
||||||
# Basic I/O
|
# Basic I/O
|
||||||
resource LED 1 B09
|
resource LED 1 B09
|
||||||
resource LED 2 B08
|
resource LED 2 B08
|
||||||
resource BEEPER 1 B03
|
resource BEEPER 1 C03
|
||||||
set beeper_inversion = ON
|
set beeper_inversion = ON
|
||||||
set beeper_od = OFF
|
set beeper_od = OFF
|
||||||
resource PINIO 1 C00
|
resource PINIO 1 C00
|
||||||
|
@ -69,7 +69,7 @@ dma pin B06 0 # pin B06: DMA1 Stream 0 Channel 2
|
||||||
dma pin B00 0 # pin B00: DMA1 Stream 7 Channel 5
|
dma pin B00 0 # pin B00: DMA1 Stream 7 Channel 5
|
||||||
dma pin B01 0 # pin B01: DMA1 Stream 2 Channel 5
|
dma pin B01 0 # pin B01: DMA1 Stream 2 Channel 5
|
||||||
dma pin B10 0 # pin B10: DMA1 Stream 1 Channel 3
|
dma pin B10 0 # pin B10: DMA1 Stream 1 Channel 3
|
||||||
dma pin B11 0 # pin B11: DMA1 Stream 7 Channel 3
|
dma pin B11 1 # pin B11: DMA1 Stream 7 Channel 3
|
||||||
|
|
||||||
set dshot_burst = ON
|
set dshot_burst = ON
|
||||||
set motor_pwm_protocol = Dshot600
|
set motor_pwm_protocol = Dshot600
|
||||||
|
@ -104,16 +104,16 @@ resource ESCSERIAL 1 B00
|
||||||
# Some configs
|
# Some configs
|
||||||
feature RX_SERIAL
|
feature RX_SERIAL
|
||||||
feature OSD
|
feature OSD
|
||||||
feature LED_STRIP
|
|
||||||
feature MOTOR_STOP
|
|
||||||
serial 0 0 115200 57600 0 115200
|
serial 0 0 115200 57600 0 115200
|
||||||
serial 1 0 115200 57600 0 115200
|
serial 1 0 115200 57600 0 115200
|
||||||
serial 2 64 115200 57600 0 115200
|
serial 2 64 115200 57600 0 115200
|
||||||
serial 3 0 115200 57600 0 115200
|
serial 3 0 115200 57600 0 115200
|
||||||
serial 4 0 115200 57600 0 115200
|
serial 4 0 115200 57600 0 115200
|
||||||
serial 5 0 115200 57600 0 115200
|
serial 5 0 115200 57600 0 115200
|
||||||
set pinio_box = 40,255,255,255
|
set pinio_config = 1,129,1,1
|
||||||
|
set pinio_box = 40,41,255,255
|
||||||
set tlm_halfduplex = OFF
|
set tlm_halfduplex = OFF
|
||||||
|
set blackbox_device = SPIFLASH
|
||||||
set adc_device = 2
|
set adc_device = 2
|
||||||
set battery_meter = ADC
|
set battery_meter = ADC
|
||||||
set current_meter = ADC
|
set current_meter = ADC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue