mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
merged multiwii GPS code from 1097. still no support for UBX, or GPS auto-config, soon.
added interrupt pins from mag/mma/mpu for rev4 hardware. nothing done with them yet - candidates for EXTI use added tx buffer to UART2 (gps) in preparation for auto-config git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@203 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
70db9006af
commit
80d7ba604b
12 changed files with 2769 additions and 2694 deletions
|
@ -13,7 +13,7 @@ config_t cfg;
|
|||
const char rcChannelLetters[] = "AERT1234";
|
||||
|
||||
static uint32_t enabledSensors = 0;
|
||||
uint8_t checkNewConf = 26;
|
||||
uint8_t checkNewConf = 27;
|
||||
|
||||
void parseRcChannels(const char *input)
|
||||
{
|
||||
|
@ -184,6 +184,7 @@ void checkFirstTime(bool reset)
|
|||
cfg.gimbal_roll_mid = 1500;
|
||||
|
||||
// gps/nav stuff
|
||||
cfg.gps_type = 0; // NMEA
|
||||
cfg.gps_baudrate = 9600;
|
||||
cfg.gps_wp_radius = 200;
|
||||
cfg.gps_lpf = 20;
|
||||
|
@ -192,7 +193,7 @@ void checkFirstTime(bool reset)
|
|||
cfg.nav_speed_min = 100;
|
||||
cfg.nav_speed_max = 300;
|
||||
|
||||
// serial(uart1) baudrate
|
||||
// serial (USART1) baudrate
|
||||
cfg.serial_baudrate = 115200;
|
||||
|
||||
writeParams(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue