Well guys I wrote this programme and it made those motors not work well.they seems to be jammed, I mean when I push joysticks up or down, motors run Intermittently with strange sound.
I am using EasyC for VEX 2.0.Here is the screenshot and the chassis.
Is it a bug or something wrong with my programme, or I have to get EasyC Pro?
Any suggestion would be grateful.
A pretty good piece of advice to everyone – no matter which programming language you are using, if your motors seem to be twitching or reversing direction really quickly, you are (99.9% of the time) sending conflicting motor speed commands from your program. I see this frequently (and students always start by blaming the VEX controller ).
If a motor is running constantly regardless of inputs from the program, you probably have a PWM cable plugged in backwards.
I’ve changed the program and it’s controlling only one motor by each channel from 1 to 4 but it’s hard (or strange) to operate and that let our operator speechless.
So is it possible to use channel 3 and 2 to let the motors on the same side to run and channel 5 for turning, or it will work if I use robotC?
Yeah i would try something like this. What you need to do if get Rx five to store it’s information in a variable. Using the Rx Input block so you could make it so Rx channel five returns it’s info and stores it as a variable called CH_5
If CH_5 == 127
Inset you arcade drive of the robot here something where ch 1 controls the sideways wheels (The ones on the longer pieces of the chassis) and ch 2 controls the wheels that are forwards and back. so if you push the joystick forward you go forward. If you push it back you will go back and if you go side to side you will go side to side.
You can do this using the Motor Module Rx block so that Ch 2 controls the forward and back motors and ch1 controls the side to side motors.
If Ch_5 == 255
Set all the motors to turn at full speed as to spin the robot clockwise
You can use the Motor Module block that is under outputs to do this
If Ch_5 == 0
Set all the motors to turn at full speed as to spin the robot anticlockwise
You can use the Motor Module block that is under outputs to do this
Could you please tell us which motors are plugged into which ports it would make it a bit easier for us to help you this way. Thanks
~DK
It looks fine from what i have seen except for one thing i would put the Tank4 block inside a loops so that you will only be able to do that if ch 5 is not being pushed at all. This way you will not set compromising signals to the motors which will cause them to twitch.
Why do you want to use ch 2 and 3 to control this thing. It just seems awkward because you will be pushing ch 2 forward on you controller to get the robot to move sideways. It is just a driver thing whatever they prefer. If it were me driving that may be a bit confusing.
and just to be sure you added in a loop that says IF a==127 and you put you standard (not spinning) code in there? correct. If you do not do this then you may sent conflicting signals to the motor.
thanks for the notice, but I thought that it’s not necessery because there is no command to motor when a==127. Well I will make sure there is a command when a==127.
did you all forget about smartkid’s holonomic drive tutorial?
i think you can just download the code there
because i think its more complicated than the code you posted
(you needed to change numbers, and then change them back, and do a bunch of checks)
and i think another user uploaded your “+” holonomic code in his thread as well
btw your drive chassis looks pretty sweet ^^
You may need to choose to invert some motor movements, alter the radio controls, etc. to make it work, but for a plus-shaped holonomic that’s all you need. One channel will control all turning, and the other two individual channels work the linear motion. If you turn while moving or you roll the non-turning joystick around you’ll get drifting and one-sided turning.
When you Quote a Message or Start a New Message, there is a Box, below the Editing Box that says “Additional Options”. The Second Section says “Attach Files”, click the “Manage Attachments” Button, and when the Pop Up Window appears, Click the “Browse” Button to find the file you want to attach to the Message… Find your File and click the “Open” Button, after selecting that File. Don’t forget to click the “Upload” Button after each file you Browse and Open…