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.
HbUserOpe.h
- Committer:
- MasashiNomura
- Date:
- 2018-12-21
- Revision:
- 33:eb260dbfc22a
- Parent:
- 31:56c554c560c1
- Child:
- 34:234b87f3e6ce
File content as of revision 33:eb260dbfc22a:
#ifndef __HBUSER_OPE_H__
#define __HBUSER_OPE_H__
/////////////////////////////////////////////////////////////////////
#include "typedef.h"
#include "globalFlags.h"
//#include "HbManager.h"
class HbUserOpe{
private:
typUserSw oldOpe;
typUserSw curOpe;
float AinAxlVal;
public:
// enum SW_TYPE{
// ACCEL_R = 0,
// ACCEL_L,
// STOP,
// YAW_CTRL,
// ENG_STOP,
// };
enum SW_TYPE{
BRK_L = 0,// Front Left
BRK_R, // Front Right
R_1, // Rear Left?
R_2, // Rear Right?
MOT_STOP,
R_3,
R_4,
R_5,
R_6,
ALL_STOP,
};
HbUserOpe();//コンストラクタ
~HbUserOpe();//デストラクタ
typUserSw GetUserOpe();//ボタンの現在状態取得(更新)
INT16 GetAinAccel();//前進用モーター(後部)アクセル用アナログ入力値取得(更新)
//bool ChkCtrlSW(SW_TYPE styp);
bool ChkCtrlSW(SW_TYPE styp);
bool ChkCtrlSwAny();
bool ChkCtrlSwRiseEdge(SW_TYPE styp);
};
/////////////////////////////////////////////////////////////////////
#endif