etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
Lifter.h
[詳解]
1 
7 #ifndef __LIFTER__
8 #define __LIFTER__
9 
10 #include "Controller.h"
11 #include <cstdint>
12 
13 namespace etrobocon2018_test {
14  class LifterTest;
15 }
16 
20 class Lifter {
22 
23  public:
26  explicit Lifter(Controller& controller_) : controller(controller_) { reset(); }
27 
31  void liftUp(std::uint8_t angle, std::int8_t pwm = 20);
32 
36  void liftDown(std::uint8_t angle, std::int8_t pwm = 20);
37 
40  std::int8_t getCurrentAngle();
41 
44  void defaultSet(std::int8_t pwm = 20);
45 
46  private:
48  std::int32_t default_count = 0;
49  std::int8_t limitPwm(std::int8_t pwm);
50  void init();
51  void terminate();
52  void reset();
53 };
54 
55 #endif
void defaultSet(std::int8_t pwm=20)
Definition: Lifter.cpp:57
走行体のアームを操作するクラス。
Definition: Lifter.h:20
void liftDown(std::uint8_t angle, std::int8_t pwm=20)
Definition: Lifter.cpp:45
Lifter(Controller &controller_)
Definition: Lifter.h:26
std::int8_t getCurrentAngle()
Definition: Lifter.cpp:16
std::int8_t limitPwm(std::int8_t pwm)
Definition: LifterTest.cpp:28
void liftUp(std::uint8_t angle, std::int8_t pwm=20)
Definition: Lifter.cpp:33