Ardupilot2/libraries/AP_InertialSensor/AP_InertialSensor_UserInteract_Stream.h
Andrew Tridgell f3f4b7205c AP_InsertialSensor: added support for MAVLink user interaction
allows APM to ask user to print enter to continue via MAVLink messages
during accel calibration
2013-05-08 16:18:40 +10:00

25 lines
614 B
C++

#ifndef __AP_INERTIAL_SENSOR_USER_INTERACT_STREAM_H__
#define __AP_INERTIAL_SENSOR_USER_INTERACT_STREAM_H__
#include <AP_HAL.h>
#include "AP_InertialSensor_UserInteract.h"
/**
* AP_InertialSensor_UserInteract, implemented in terms of a BetterStream.
*/
class AP_InertialSensor_UserInteractStream :
public AP_InertialSensor_UserInteract {
public:
AP_InertialSensor_UserInteractStream(AP_HAL::BetterStream *s) :
_s(s) {}
uint8_t blocking_read();
void _printf_P(const prog_char *, ...);
private:
AP_HAL::BetterStream *_s;
};
#endif // __AP_INERTIAL_SENSOR_USER_INTERACT_STREAM_H__