|
Stop/Resume function? January 14, 2010 11:43AM |
|
Re: Stop/Resume function? January 14, 2010 01:30PM |
Registered: 16 years ago Posts: 278 |
|
Re: Stop/Resume function? January 14, 2010 04:59PM |
Admin Registered: 19 years ago Posts: 1,791 |
|
Re: Stop/Resume function? January 14, 2010 06:45PM |
Registered: 18 years ago Posts: 1,094 |
|
Re: Stop/Resume function? January 15, 2010 09:22AM |
|
Re: Stop/Resume function? January 15, 2010 10:44AM |
Admin Registered: 18 years ago Posts: 7,883 |
|
Re: Stop/Resume function? January 15, 2010 12:14PM |
|
Re: Stop/Resume function? January 15, 2010 12:26PM |
Registered: 16 years ago Posts: 278 |
LOOP FOREVER
...
// Execute all logic to adjust the next target position for all servos,
// but only if all servos have reported they are ready.
IF motor_1_ready && motor_2_ready && ...
THEN
set_next_target_state_on_all_motors();
// These will set the motor_X_ready bits to true if target achieved.
perform_motor_1_PID();
perform_motor_2_PID();
perform_motor_3_PID();
...
END LOOP
|
Re: Stop/Resume function? January 15, 2010 12:38PM |
|
Re: Stop/Resume function? January 15, 2010 01:56PM |
Registered: 16 years ago Posts: 278 |