|
|
|
@ -527,6 +527,9 @@ void AP_GPS::detect_instance(uint8_t instance)
@@ -527,6 +527,9 @@ void AP_GPS::detect_instance(uint8_t instance)
|
|
|
|
|
dstate->current_baud = 0; |
|
|
|
|
} |
|
|
|
|
uint32_t baudrate = _baudrates[dstate->current_baud]; |
|
|
|
|
if(_type[instance] == GPS_TYPE_SINO || _type[instance] == GPS_TYPE_NMEA || _type[instance] == GPS_TYPE_UNICO){ |
|
|
|
|
baudrate = 115200U; |
|
|
|
|
} |
|
|
|
|
_port[instance]->begin(baudrate); |
|
|
|
|
_port[instance]->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE); |
|
|
|
|
dstate->last_baud_change_ms = now; |
|
|
|
@ -537,7 +540,7 @@ void AP_GPS::detect_instance(uint8_t instance)
@@ -537,7 +540,7 @@ void AP_GPS::detect_instance(uint8_t instance)
|
|
|
|
|
}else if (_type[instance] == GPS_TYPE_SINO) { |
|
|
|
|
send_blob_start(instance, AP_GPS_NMEA_SINO_INIT_STRING, strlen(AP_GPS_NMEA_SINO_INIT_STRING)); |
|
|
|
|
}else if (_type[instance] == GPS_TYPE_UNICO) { |
|
|
|
|
send_blob_start(instance, AP_GPS_NMEA_UNICORE_INIT_STRING, strlen(AP_GPS_NMEA_UNICORE_INIT_STRING)); |
|
|
|
|
send_blob_start(instance, AP_GPS_NMEA_UNICORE_INIT_STRING, strlen(AP_GPS_NMEA_UNICORE_INIT_STRING));
|
|
|
|
|
}else { |
|
|
|
|
send_blob_start(instance, _initialisation_blob, sizeof(_initialisation_blob)); |
|
|
|
|
} |
|
|
|
|