s-shape control
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_ ) |
| void Input_nowXY | ( | int | now_x, |
| int | now_y | ||
| ) |
| void target | ( | double | target_, |
| double | start_ | ||
| ) |
| 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.
Generated on Tue Jul 26 2022 21:10:56 by
1.7.2
Ryu Anzawa