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: hbCommand.cpp
- Revision:
- 21:78302ecdb661
- Parent:
- 20:0394e15412c3
- Child:
- 22:24c9c2dedca9
diff -r 0394e15412c3 -r 78302ecdb661 hbCommand.cpp --- a/hbCommand.cpp Wed Dec 05 01:43:55 2018 +0000 +++ b/hbCommand.cpp Thu Dec 06 01:50:17 2018 +0000 @@ -53,20 +53,24 @@ else if (strcmp(g_CmdBuf , "sm3" )==0 ){gf_MtReq[2].bf.req=true; gf_MtReq[2].bf.val=(UINT16)atoi(&g_CmdBuf[arg2pos]);} else if (strcmp(g_CmdBuf , "sm4" )==0 ){gf_MtReq[3].bf.req=true; gf_MtReq[3].bf.val=(UINT16)atoi(&g_CmdBuf[arg2pos]);} + // +// else if (strcmp(g_CmdBuf , "dbg" )==0 ){} + //キャリブレーション else if (strcmp(g_CmdBuf , "calyaw")==0 ){gf_Cal.bf.yaw=true;}// else if (strcmp(g_CmdBuf , "calgyro")==0 ){gf_Cal.bf.gy=true;}// else if (strcmp(g_CmdBuf , "calimu")==0 ){gf_Cal.bf.gy=true;gf_Cal.bf.yaw=true;}// //チェック系 - else if (strcmp(g_CmdBuf , "chkmot")==0 ){gf.push(CHK_MOT);}//モーターチェック //連続モニタ else if (strcmp(g_CmdBuf , "mg" )==0 ){gf_Print.bf.gy=true;gf_Mon.bf.gy=true;}//リードジャイロ else if (strcmp(g_CmdBuf , "my" )==0 ){gf_Print.bf.yaw=true;gf_Mon.bf.yaw=true;}//リード姿勢角ヨー else if (strcmp(g_CmdBuf , "mimu")==0 ){gf_Print.bf.yaw=true;gf_Print.bf.gy=true;gf_Mon.bf.yaw=true;gf_Mon.bf.gy=true;}//リードIMU else if (strcmp(g_CmdBuf , "mfb" )==0 ){gf_Print.bf.fb=true;gf_Mon.bf.fb=true;}//PID制御フィードバック結果 - else if (strcmp(g_CmdBuf , "kill")==0 ){gf_Mon.flg=0;}//モニタ停止 + else if (strcmp(g_CmdBuf , "kill")==0 ){gf_Mon.flg=0;}//モニタ停止 + + //何にも引っ掛からない else {sp.printf("command missmatch\r\n"); }; //バッファクリア