1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #pragma once
- #include <AP_HAL/AP_HAL.h>
- #include <AP_AHRS/AP_AHRS.h>
- #if !HAL_MINIMIZE_FEATURES && AP_AHRS_NAVEKF_AVAILABLE
- #include <AP_SerialManager/AP_SerialManager.h>
- class AP_NMEA_Output {
- public:
- static AP_NMEA_Output* probe();
-
- AP_NMEA_Output(const AP_NMEA_Output &other) = delete;
- AP_NMEA_Output &operator=(const AP_NMEA_Output&) = delete;
- void update();
- private:
- AP_NMEA_Output();
- uint8_t _nmea_checksum(const char *str);
- static AP_NMEA_Output* _singleton;
- uint8_t _num_outputs;
- AP_HAL::UARTDriver* _uart[SERIALMANAGER_NUM_PORTS];
- uint16_t _last_sent;
- };
- #endif
|