Go to the documentation of this file.
43 void sendRaw(
const std::string& cmd);
46 void sendThumbPWM(std::uint64_t
v, std::uint64_t maxPWM, std::uint64_t pos);
47 void sendFingerPWM(std::uint64_t
v, std::uint64_t maxPWM, std::uint64_t pos);
54 std::atomic_int64_t _thumbPWM{0};
55 std::atomic_int64_t _thumbPos{0};
56 std::atomic_int64_t _fingerPWM{0};
57 std::atomic_int64_t _fingerPos{0};
60 std::unique_ptr<BLEProthesisInterfaceQtWorkerThread> _worker;
62 std::atomic_bool _verboseReceive{
false};
63 std::atomic_bool _verboseSend{
true};
86 static constexpr std::uint64_t getMaxPosFingers()
static constexpr std::uint64_t getMaxG()
void verboseReceive(bool b=true)
static constexpr std::uint64_t getMaxV()
static constexpr std::uint64_t getMaxPosThumb()
static constexpr std::uint64_t getMinV()
std::int64_t getFingerPWM() const
std::int64_t getThumbPos() const
@ DiscoveringServicesDone
BLEProthesisInterface(const std::string &mac, SensorValueProtocol protocol=SensorValueProtocol::mx_pos_pwm)
std::string to_string(BLEProthesisInterface::State s)
void verboseSend(bool b=true)
void sendThumbPWM(std::uint64_t v, std::uint64_t maxPWM, std::uint64_t pos)
std::int64_t getFingerPos() const
double v(double t, double v0, double a0, double j)
std::int64_t getThumbPWM() const
void sendGrasp(std::uint64_t n)
double s(double t, double s0, double v0, double a0, double j)
void sendRaw(const std::string &cmd)
void sendFingerPWM(std::uint64_t v, std::uint64_t maxPWM, std::uint64_t pos)
static constexpr std::uint64_t getMaxPWM()