![]() |
RogiStandard-hal
STM32 向けサークル共通ライブラリ
|
#include <Servo.hpp>
公開メンバ関数 | |
| Servo (TIM_HandleTypeDef *htim, uint32_t channel, uint16_t pulseMinUs=500, uint16_t pulseMaxUs=2500, bool invert=false, float gear_ratio=1.0f, uint8_t device_id=0) | |
| void | begin (float start_ang=60.0f) |
| void | setAngleRange (float minDeg, float maxDeg) |
| void | setGearRatio (float ratio=1.0f) |
| void | setAngle (float deg) |
| void | setPulse (uint32_t us) |
| void | setHandAngles (float openDeg, float closeDeg) |
| void | setHand (bool open) |
| void | openHand () |
| void | closeHand () |
| uint32_t | getPulse () const |
| uint8_t | deviceID () const |