View Single Post
  #1   Spotlight this post!  
Unread 10-02-2015, 17:49
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 609
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Need assistance with setting up a pid output.

Hey, I finally got my pid loop to work. Only one problem, when I use the button I've set to st the motors to the output, they go to the output at the time they were pressed, but this doesn't change unless I press the button once more. I.e if the motor would go full speed as it was X distance from the goal, it would go full speed until I press the button again, it would then go th speed it needs to BASED ON THE TIME it was once again pushed. Here is the output code
(Using a tablet. Sorry if this comes out slightly off)
Code:
if (stick>GetRawButton(9))
{Motor>Set(output);
}
This is using iterative robot BTW.
Reply With Quote