Are you using Cortex or V5? V5 has a “hold” function in its brakeType commands with built-in PID.
As for Cortex, there are most definitely PID tutorials out there that are really helpful. I don’t have any off the top of my head, but I know I’ve seen them.
But holding the wheels still isn’t the only way to brake a robot. You could also theoretically have a deployable pad that presses against the platform that acts as a brake.
As stated, V5 has built in PID to control the hold function. I’m not exactly sure how to call it, as I don’t use PROS. We’d have to get a PROfessional in here to help with that much. (Edit: Yes, I stole that pun.)
(this is in a the infinite loop of the op control)
The problem now is that the force is not strong enough or i don’t know what.
it successfully brakes the wheels after it is stopped.
But, when i turn the wheels, it gives me some resistant force but it doesn’t practically move back to the original position.
What is happening? do i have to edit the pid parameters and how do i do that?
Once again, I don’t use PROS, nor do I know as much about coding as others, but I have another idea.
What if you set up a function ot take the current built-in encoder value, and then have a loop telling the motor to go to that value? It might register any change, and fight against it. (?)
But there’s probably an easier way to do that. Maybe it’s built in and I just don’t know about it.
Yes. I knew htat. But what I didn’t know was why it might not have been working, so I decided to come up with a workaround to do it manually. Of course, it’s not needed because the issue was resolved.
it stills stays the same.
the proble is still that it will only supply a low resistant when i push it and is not capable to move back to its original positition.
also, it(the small resistant force) cannot be activated when the motor are not moving
It disappears because the code no longer reads the button as pressed, and sets the brake type back to normal. There are ways to make a toggle button, though. I’m not sure what the best way to go about doing it in PROS would be.
Personally, I would be fine with just holding the button. But I can see the superiority of the toggle button.
Sorry, I read this as a secondary problem. I don’t really think I’ll be much help on the bigger problem, though. I tried. Sorry I don’t know absolutely everything.