DC motor control program using TA7291P type H bridge driver and rotary encoder with A, B phase.
Fork of DCmotor2 by
Diff: main.cpp
- Revision:
- 15:29797f995594
- Parent:
- 13:ba71733c11d7
- Child:
- 20:39d919589359
- Child:
- 22:4fd506b1c68d
--- a/main.cpp Sun Mar 03 09:19:02 2013 +0000 +++ b/main.cpp Tue Mar 12 05:01:46 2013 +0000 @@ -79,7 +79,7 @@ // osPriorityHigh = +2, ///< priority: high // osPriorityRealtime = +3, ///< priority: realtime (highest) // osPriorityError = 0x84 ///< system cannot determine priority or thread has illegal priority - float w_ref_req[2] = {2* 2*PI, 4* 2*PI}; // [rad/s], 指令速度(第2要素は指令速度急変後の指令速度) + float w_ref_req[2] = {2* 2*PI, 10* 2*PI}; // [rad/s], 指令速度(第2要素は指令速度急変後の指令速度) float t; // [s], 現在の時間 init_parameters(); // モータの機器定数等の設定, 制御器の初期化