DC motor control program using TA7291P type H bridge driver and rotary encoder with A, B phase.
Dependencies: QEI mbed-rtos mbed
Fork of DCmotor by
Diff: main.cpp
- Revision:
- 14:02411880ffb9
- Parent:
- 13:ba71733c11d7
--- a/main.cpp Fri Mar 01 02:10:59 2013 +0000 +++ b/main.cpp Tue Mar 12 04:32:22 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(); // モータの機器定数等の設定, 制御器の初期化