Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Encoder
Diff: SpeedController.h
- Revision:
- 3:58a298386879
- Parent:
- 2:77256385cf03
- Child:
- 4:ee0ac8415639
--- a/SpeedController.h Fri Aug 09 06:19:05 2019 +0000
+++ b/SpeedController.h Fri Aug 09 06:28:06 2019 +0000
@@ -47,22 +47,22 @@
* @param target_omega 目標角速度
*
* @section CAUTION(printfについて)
- *
- * 上記のプログラムのように、速度制御ではループ500回ごとにprintfをしている。
- *
* printfはプログラム的に大きな負担がかかり、かなり時間がかかってしまうものである。
- *
* なのでループごとにいちいちprintfをさせると、速度の収束にかなり時間がかかってしまう。
- *
* (どんなプログラムにも言えるが、)そのためこのようなprintfの頻度を少なくさせるような工夫が必要になる。
- *
*/
void Sc(double target_omega);
- ///モーターのpwm周期の設定用関数[s]
+ /**モーターのpwm周期の設定用関数
+ * @param s モーターのpwm周期[s]
+ */
void period(double s);
- ///モーターのpwm周期の設定用関数[ms]
+ /**モーターのpwm周期の設定用関数
+ * @param s モーターのpwm周期[ms]
+ */
void period_ms(int ms);
- ///モーターのpwm周期の設定用関数[us]
+ /**モーターのpwm周期の設定用関数
+ * @param s モーターのpwm周期[us]
+ */
void period_us(int us);
/** PIDパラメータ設定関数
*