s-shape control

Embed: (wiki syntax)

« Back to documentation index

Proto1 Class Reference

Proto1 Class Reference

S字制御クラス More...

#include <proto01.h>

Public Member Functions

 Proto1 (double accdis_, double decdis_, double maxspeed_, double s_vector_)
 コンストラクタ
void target (double target_, double start_)
 目標点を設定する
void targetXY (int targetx_, int targety_, int startx_, int starty_)
 xy座標で目標点を設定する
void Input_now (double now_)
 現在地点を入力
void Input_nowXY (int now_x, int now_y)
 現在地点を入力
void calculate ()
 S字に変化する速度を計算
double getvalue_x ()
 x方向のベクトルを返す
double getvalue_y ()
 y方向のベクトルを返す
double getvalue ()
 そのまま返す

Detailed Description

S字制御クラス

Definition at line 10 of file proto01.h.


Constructor & Destructor Documentation

Proto1 ( double  accdis_,
double  decdis_,
double  maxspeed_,
double  s_vector_ 
)

コンストラクタ

Parameters:
accdis_加速距離
decdis_減速距離(誤差あり。大きめに調整すると良い)
maxspeed_最大速度(?)

Definition at line 3 of file proto01.cpp.


Member Function Documentation

void calculate (  )

S字に変化する速度を計算

Definition at line 71 of file proto01.cpp.

double getvalue (  )

そのまま返す

Definition at line 86 of file proto01.cpp.

double getvalue_x (  )

x方向のベクトルを返す

Definition at line 91 of file proto01.cpp.

double getvalue_y (  )

y方向のベクトルを返す

Definition at line 96 of file proto01.cpp.

void Input_now ( double  now_ )

現在地点を入力

Parameters:
now_現在地点

Definition at line 57 of file proto01.cpp.

void Input_nowXY ( int  now_x,
int  now_y 
)

現在地点を入力

Parameters:
now_x現在地点のx座標
now_y現在地点のy座標

Definition at line 63 of file proto01.cpp.

void target ( double  target_,
double  start_ 
)

目標点を設定する

Parameters:
target_目標点
start_開始地点

Definition at line 14 of file proto01.cpp.

void targetXY ( int  targetx_,
int  targety_,
int  startx_,
int  starty_ 
)

xy座標で目標点を設定する

Parameters:
targetx_目標点のx座標
targety_目標点のy座標
startx_開始地点のx座標
starty_開始地点のy座標

Definition at line 34 of file proto01.cpp.