apm::AP_GPS_GSOF::AP_GPS_GSOF(apm::gps_t &_gps) : apm::AP_GPS_Backend{_gps,"GSOF", apm::gps_t::GPS_TYPE_GSOF} { gsof_msg.gsof_state = gsof_msg_parser_t::STARTTX; // baud request for port 0 requestBaud(0); // baud request for port 3 requestBaud(3); uint32_t now = quan::stm32::millis().numeric_value(); gsofmsg_time = now + 110; }
AP_GPS_GSOF::AP_GPS_GSOF(AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port) : AP_GPS_Backend(_gps, _state, _port) { gsof_msg.gsof_state = gsof_msg_parser_t::STARTTX; // baud request for port 0 requestBaud(0); // baud request for port 3 requestBaud(3); uint32_t now = AP_HAL::millis(); gsofmsg_time = now + 110; }