etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
Steering.h
[詳解]
1 //
2 // Steering.h
3 //
4 // Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5 //
6 
7 #ifndef EV3CPPAPI_STEERING_H_
8 #define EV3CPPAPI_STEERING_H_
9 
10 #include "Motor.h"
11 
12 namespace ev3api {
16 class Steering
17 {
18 public:
25  explicit Steering(Motor& leftMotor, Motor& rightMotor);
26 
34  void setPower(int power, int turnRatio);
35 
36 private:
37  Motor& mLeftMotor;
38  Motor& mRightMotor;
39 }; // class Steering
40 } // namespace ev3api
41 #endif // ! EV3CPPAPI_STEERING_H_
void setPower(int power, int turnRatio)
Definition: Steering.cpp:17
Steering(Motor &leftMotor, Motor &rightMotor)
Definition: Steering.cpp:12