d19c5035b6
As commented in 8218140
("AP_Common: add scanf format macro"), "FORMAT"
was a bad name for this macro since there's also the scanf. Rename to
FMT_PRINTF to follow the scanf name.
29 lines
712 B
C++
29 lines
712 B
C++
|
|
#ifndef __AP_INERTIAL_SENSOR_USER_INTERACT_MAVLINK_H__
|
|
#define __AP_INERTIAL_SENSOR_USER_INTERACT_MAVLINK_H__
|
|
|
|
#include "AP_InertialSensor_UserInteract.h"
|
|
|
|
#include <AP_Common/AP_Common.h>
|
|
#include <AP_HAL/AP_HAL.h>
|
|
#include <GCS_MAVLink/GCS_MAVLink.h>
|
|
|
|
class GCS_MAVLINK;
|
|
|
|
/**
|
|
* AP_InertialSensor_UserInteract, implemented in terms of a MAVLink connection
|
|
*/
|
|
class AP_InertialSensor_UserInteract_MAVLink : public AP_InertialSensor_UserInteract {
|
|
public:
|
|
AP_InertialSensor_UserInteract_MAVLink(GCS_MAVLINK *gcs) :
|
|
_gcs(gcs) {}
|
|
|
|
bool blocking_read();
|
|
void printf(const char *, ...) FMT_PRINTF(2, 3);
|
|
private:
|
|
GCS_MAVLINK *_gcs;
|
|
};
|
|
|
|
#endif // __AP_INERTIAL_SENSOR_USER_INTERACT_MAVLINK_H__
|
|
|