434d094993
this uses the snoop functionality of GCS_MAVLink to allow the delay callback to be used during accel calibration
27 lines
650 B
C++
27 lines
650 B
C++
|
|
#ifndef __AP_INERTIAL_SENSOR_USER_INTERACT_MAVLINK_H__
|
|
#define __AP_INERTIAL_SENSOR_USER_INTERACT_MAVLINK_H__
|
|
|
|
#include <AP_HAL.h>
|
|
#include <GCS_MAVLink.h>
|
|
#include "AP_InertialSensor_UserInteract.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_P(const prog_char *, ...);
|
|
private:
|
|
GCS_MAVLINK *_gcs;
|
|
};
|
|
|
|
#endif // __AP_INERTIAL_SENSOR_USER_INTERACT_MAVLINK_H__
|
|
|