EV3RT C++ API Reference  Version 1.0
An RTOS-based development platform for LEGO Mindstorms EV3.
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_
Definition: Clock.h:12
void setPower(int power, int turnRatio)
Definition: Motor.h:17
Steering(Motor &leftMotor, Motor &rightMotor)
Definition: Steering.h:16