4-Axisと同じラインセンサのライブラリ

Dependents:   00_yotsuba 10_motor-test 00_yotsuba 200_yotsuba_21

Embed: (wiki syntax)

« Back to documentation index

Line Class Reference

Line Class Reference

ラインセンサ用クラス More...

#include <line.h>

Public Member Functions

 Line (PinName line_)
 デフォルトコンストラクタ
void border (float border_)
 ラインとの境目の位置
bool judg ()
 ラインの判別表示 1だとライン踏んでいる 0だとラインを踏んでいない
float value ()
 センサの値表示

Detailed Description

ラインセンサ用クラス

Definition at line 11 of file line.h.


Constructor & Destructor Documentation

Line ( PinName  line_ )

デフォルトコンストラクタ

Definition at line 3 of file line.cpp.


Member Function Documentation

void border ( float  border_ )

ラインとの境目の位置

Definition at line 14 of file line.cpp.

bool judg (  )

ラインの判別表示 1だとライン踏んでいる 0だとラインを踏んでいない

Definition at line 40 of file line.cpp.

float value (  )

センサの値表示

Definition at line 35 of file line.cpp.