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.
Diff: userTask.cpp
- Revision:
- 35:3779201b4c73
- Parent:
- 34:234b87f3e6ce
- Child:
- 36:2cc739c7e4cb
--- a/userTask.cpp Sat Dec 22 09:08:10 2018 +0000
+++ b/userTask.cpp Tue Dec 25 08:20:17 2018 +0000
@@ -129,10 +129,15 @@
case WAKEUP:
//各種モーター
//機材のチェック
-// if(hb.chkMotor() == true){
- hb.calAtt();
+ hb.calAtt();
+ AxlRpm = hb.getUserMotAxl();
+ if(AxlRpm > 0){
+ // 将来的に警告音等
+ sp.printf("Warning!! Motor Accel Opened!!\r\n");
+ setStateF(SLEEP);
+ } else {
setState(STANDBY);
-// }
+ }
break;
case STANDBY:
// モーター回転数のチェック→モーターの回転数をオフセット値まで上げる