![]() |
Re: Limit speed of 4 chassis CIM motors
Quote:
Personally I would remove a motor per side if it can be done w/o major disassembly. |
Re: Limit speed of 4 chassis CIM motors
Quote:
Quote:
|
Re: Limit speed of 4 chassis CIM motors
Quote:
If you have wheel encoders and you want to create smooth accel/decel-controlled pre-planned motion in auto, you might try something like this: http://www.chiefdelphi.com/media/papers/download/4312 |
Re: Limit speed of 4 chassis CIM motors
Quote:
|
Re: Limit speed of 4 chassis CIM motors
You using Joysticks or gamepads for control?
|
Re: Limit speed of 4 chassis CIM motors
Quote:
![]() |
Re: Limit speed of 4 chassis CIM motors
Quote:
Going to have to disagree in regards to gamepads or typical console controllers you can gain more control over movement (provided they are bound to the thumb sticks) by increasing the height of the thumbstick you need to accidentally make much larger movements. If you are using a joystick your out of luck though. |
Re: Limit speed of 4 chassis CIM motors
Thank you so much for the help guys, I just ended up doing this:
Code:
double rot = -stick.getX(); |
Re: Limit speed of 4 chassis CIM motors
Quote:
I would suggest you throw that in a if-else statement though, making the half-speed your default speed: Code:
if(stick.getRawButton(1))Just a suggestion. Of course, you may already have it that way in the rest of your code! |
Re: Limit speed of 4 chassis CIM motors
Thanks for the idea, would the throttle work for that as well?
|
Re: Limit speed of 4 chassis CIM motors
Quote:
I'm on my phone so I can't format this correctly and can only give some pseudo code. If(stick.getThrottle () > 0) myRobot.Drive (halfSpeedValues); else if(stick.getThrottle <= 0) myRobot.Drive (fullSpeedValues); Remember the throttle on the joystick ranges from -1 to 1, so 0 will be in the middle. |
Re: Limit speed of 4 chassis CIM motors
Just remember, by implementing that throttle (we refer to it as a software shift), you lose both speed and torque. This shouldn't be an issue driving around on an open field, but things like noodles or carrying large stacks while driving with the throtte enabled could cause very poor drive performance.
|
Re: Limit speed of 4 chassis CIM motors
Quote:
|
Re: Limit speed of 4 chassis CIM motors
Quote:
Code:
double rot = -stick.getX(); |
| All times are GMT -5. The time now is 09:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi