|
|
|
@ -3,6 +3,7 @@
@@ -3,6 +3,7 @@
|
|
|
|
|
#include <GCS_MAVLink/GCS_MAVLink.h> |
|
|
|
|
#include <GCS_MAVLink/include/mavlink/v2.0/checksum.h> |
|
|
|
|
#include <AP_GPS/AP_GPS.h> |
|
|
|
|
#include <AP_SerialManager/AP_SerialManager.h> |
|
|
|
|
|
|
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
|
|
|
|
|
@ -12,8 +13,10 @@ AP_Mount_SToRM32_serial::AP_Mount_SToRM32_serial(AP_Mount &frontend, AP_Mount::m
@@ -12,8 +13,10 @@ AP_Mount_SToRM32_serial::AP_Mount_SToRM32_serial(AP_Mount &frontend, AP_Mount::m
|
|
|
|
|
{} |
|
|
|
|
|
|
|
|
|
// init - performs any required initialisation for this instance
|
|
|
|
|
void AP_Mount_SToRM32_serial::init(const AP_SerialManager& serial_manager) |
|
|
|
|
void AP_Mount_SToRM32_serial::init() |
|
|
|
|
{ |
|
|
|
|
const AP_SerialManager& serial_manager = AP::serialmanager(); |
|
|
|
|
|
|
|
|
|
_port = serial_manager.find_serial(AP_SerialManager::SerialProtocol_SToRM32, 0); |
|
|
|
|
if (_port) { |
|
|
|
|
_initialised = true; |
|
|
|
|