|
|
|
@ -58,11 +58,15 @@
@@ -58,11 +58,15 @@
|
|
|
|
|
#define AP_SERIALMANAGER_GPS_BUFSIZE_TX 16 |
|
|
|
|
|
|
|
|
|
// AlexMos Gimbal protocol default baud rates and buffer sizes
|
|
|
|
|
// we need a 256 byte buffer for some GPS types (eg. UBLOX)
|
|
|
|
|
#define AP_SERIALMANAGER_ALEXMOS_BAUD 115200 |
|
|
|
|
#define AP_SERIALMANAGER_ALEXMOS_BUFSIZE_RX 128 |
|
|
|
|
#define AP_SERIALMANAGER_ALEXMOS_BUFSIZE_TX 128 |
|
|
|
|
|
|
|
|
|
#define AP_SERIALMANAGER_SToRM32_BAUD 115200 |
|
|
|
|
#define AP_SERIALMANAGER_SToRM32_BUFSIZE_RX 128 |
|
|
|
|
#define AP_SERIALMANAGER_SToRM32_BUFSIZE_TX 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AP_SerialManager { |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
@ -75,7 +79,8 @@ public:
@@ -75,7 +79,8 @@ public:
|
|
|
|
|
SerialProtocol_FRSky_SPort = 4, |
|
|
|
|
SerialProtocol_GPS = 5, |
|
|
|
|
SerialProtocol_GPS2 = 6, // do not use - use GPS and provide instance of 1
|
|
|
|
|
SerialProtocol_AlexMos = 7 |
|
|
|
|
SerialProtocol_AlexMos = 7, |
|
|
|
|
SerialProtocol_SToRM32 = 8, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|