Files
SpotMicroESP32-Leika/esp32/include/motion_skills/spin_skill.h
T
2025-09-10 21:07:38 +02:00

14 lines
381 B
C++

#pragma once
#include <motion_skills/walk_skill.h>
class SpinAroundSkill : public WalkSkill {
private:
bool _clockwise = true;
public:
SpinAroundSkill(bool clockwise = true) : WalkSkill(0.0f, 0.0f, clockwise ? 90.0f : -90.0f), _clockwise(clockwise) {}
const char* getName() const override { return _clockwise ? "Spin Clockwise" : "Spin Counter-Clockwise"; }
};