The last version programs
Dependencies: mbed TrapezoidControl Pulse QEI
Diff: System/Process/Process.h
- Revision:
- 16:3f2c2d89372b
- Parent:
- 13:b6e02d6261d7
- Child:
- 17:50dc4b449e69
--- a/System/Process/Process.h Sun Oct 21 02:14:15 2018 +0000 +++ b/System/Process/Process.h Mon Jul 01 13:00:20 2019 +0000 @@ -3,31 +3,11 @@ #include "mbed.h" -void SystemProcess(); -/* -#define ROLLER_LF motor[ROLLER_LF_NUM] -#define ROLLER_LL motor[ROLLER_LL_NUM] -*/ - -#define BUZZER_PIN PA_15 //ブザー +#define BUZZER_PIN PC_5 +#define EMG_0 LimitSw::IsPressed(0) +#define EMG_1 LimitSw::IsPressed(1) -#define TIRE_FR 0 //足回り前右 -#define TIRE_FL 1 //足回り前左 -#define TIRE_BR 2 //足回り後右 -#define TIRE_BL 3 //足回り後左 -#define Angle_R 4 //角度調節右 -#define Angle_L 5 //角度調節左 - -#define Lim_AR 3 //角度調節右 -#define Lim_AL 4 //角度調節左 -#define Lim_R 0 //センター右 -#define Lim_L 1 //センター左 -#define EMS_0 LimitSw::IsPressed(8) //非常停止ブザー0 -#define EMS_1 LimitSw::IsPressed(9) //非常停止ブザー1 -#define RedSW LimitSw::IsPressed(7) //赤ゾーン用スイッチ -#define BlueSW LimitSw::IsPressed(6) //青ゾーン用スイッチ - -#define ROTATE_PER_REVOLUTIONS 50 //ロタコン +void SystemProcess(); typedef union {