ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
ev3-api
library
libcpp-ev3
include
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_
ev3api
Definition:
Clock.h:12
Motor.h
ev3api::Motor
Definition:
Motor.h:17
ev3api::Steering::setPower
void setPower(int power, int turnRatio)
Definition:
Steering.cpp:17
ev3api::Steering
Definition:
Steering.h:16
ev3api::Steering::Steering
Steering(Motor &leftMotor, Motor &rightMotor)
Definition:
Steering.cpp:12
構築:
1.8.13