Re: When nEncoderTarget are reset ?
Some questions about nEncoderTarget:
RobotC firmware enters a motor in "active PID regulation mode
" when both nEncoderTarget
value is set
and motor power
RobotC firmware exits a motor of "active PID regulation mode
" when nEncoderTarget
value is reached
1. Does RobotC firmware exits a motor of "active PID regulation mode
" if motor power is changed ? (ie to go slower)
2. Does RobotC firmware exits a motor of "active PID regulation mode
" if motor power is stopped the restarted ?
3. What are all conditions possible to cancel the nEncoderTarget
( except to reach it
4. Is there a safe way to abort a nEncoderTarget
while motor is turning and target is not reached ?.
Thank you for your help.
I think that your first two statements are wrong. It's my understanding that PID is on only when you've set it to be on, and off when you've set it to be off. But, I might be wrong.
My answers to your questions (again, these are just my
answers, take them as you will.
1. If by regulation you mean the PID, then no. The PID just tries to keep the motor going at the speed you set.
2. It doesn't cancel the target. That code is fine. (as far as I know)
3. None, I think (other than writing a new
4. I'm not exactly sure what you mean. Could you possibly explain better?
Anyway, these are correct as far as I know. Do they satisfy?
Self-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?"
- The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.