mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
AP_GPS: uartB fixup
This commit is contained in:
parent
5840ded767
commit
d72c5cf828
@ -16,7 +16,7 @@
|
|||||||
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
|
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
|
||||||
|
|
||||||
GPS *gps;
|
GPS *gps;
|
||||||
AP_GPS_Auto GPS(hal.uart1, &gps);
|
AP_GPS_Auto GPS(hal.uartB, &gps);
|
||||||
|
|
||||||
#define T6 1000000
|
#define T6 1000000
|
||||||
#define T7 10000000
|
#define T7 10000000
|
||||||
@ -43,7 +43,7 @@ void print_latlon(AP_HAL::BetterStream *s, int32_t lat_or_lon)
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
hal.uart1->begin(38400);
|
hal.uartB->begin(38400);
|
||||||
|
|
||||||
hal.console->println("GPS AUTO library test");
|
hal.console->println("GPS AUTO library test");
|
||||||
gps = &GPS;
|
gps = &GPS;
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
|
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
|
||||||
|
|
||||||
AP_GPS_MTK16 gps(hal.uart1);
|
AP_GPS_MTK16 gps(hal.uartB);
|
||||||
#define T6 1000000
|
#define T6 1000000
|
||||||
#define T7 10000000
|
#define T7 10000000
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
hal.uart1->begin(38400);
|
hal.uartB->begin(38400);
|
||||||
gps.print_errors = true;
|
gps.print_errors = true;
|
||||||
|
|
||||||
hal.console->println("GPS MTK library test");
|
hal.console->println("GPS MTK library test");
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
|
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
|
||||||
|
|
||||||
AP_GPS_UBLOX gps(hal.uart1);
|
AP_GPS_UBLOX gps(hal.uartB);
|
||||||
#define T6 1000000
|
#define T6 1000000
|
||||||
#define T7 10000000
|
#define T7 10000000
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
hal.uart1->begin(38400);
|
hal.uartB->begin(38400);
|
||||||
gps.print_errors = true;
|
gps.print_errors = true;
|
||||||
|
|
||||||
hal.console->println("GPS UBLOX library test");
|
hal.console->println("GPS UBLOX library test");
|
||||||
|
Loading…
Reference in New Issue
Block a user