#pragma once #include #include #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) {} bool blocking_read(); void printf(const char*, ...) FMT_PRINTF(2, 3); private: AP_HAL::BetterStream *_s; };