3#include "../../network/websocket/WebSocketProtocol.h"
6#include <nlohmann/json.hpp>
_Tp power(_Tp __x, _Integer __n, _MonoidOperation __monoid_op)
_GLIBCXX_END_NAMESPACE_CXX11 typedef basic_string< char > string
base_motor(robot::types::motorid_t motor, bool hasPosSensor)
Constructor for base motor.
Definition base_motor.cpp:6
void setMotorPos(int32_t targetPos) override
Set the target position of the motor.
Definition sim_motor.cpp:21
sim_motor(robot::types::motorid_t motor, bool hasPosSensor, const std::string &name, const std::string &path)
Constructor for can motor.
Definition sim_motor.cpp:9
void setMotorPower(double power) override
Set the PWM command of the motor.
Definition sim_motor.cpp:13
types::DataPoint< int32_t > getMotorPos() const override
Get the last reported position of the specified motor.
Definition sim_motor.cpp:30
Represents data measured using a sensor at a given time.
Definition data.h:136
motorid_t
The motors on the robot.
Definition data.h:57
Collection of functions for manipulating a motor.
Definition ArduPilotInterface.cpp:27