|
|
@ -23,6 +23,8 @@ AP_GPS_MTK::init(AP_HAL::UARTDriver *s, enum GPS_Engine_Setting nav_setting) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_port = s; |
|
|
|
_port = s; |
|
|
|
_port->flush(); |
|
|
|
_port->flush(); |
|
|
|
|
|
|
|
_step = 0; |
|
|
|
|
|
|
|
|
|
|
|
// initialize serial port for binary protocol use
|
|
|
|
// initialize serial port for binary protocol use
|
|
|
|
// XXX should assume binary, let GPS_AUTO handle dynamic config?
|
|
|
|
// XXX should assume binary, let GPS_AUTO handle dynamic config?
|
|
|
|
_port->print(MTK_SET_BINARY); |
|
|
|
_port->print(MTK_SET_BINARY); |
|
|
|