Hi! Is anyone able to tell me how to set one motor to the speed of the controller joystick?
9935E
August 6, 2020, 6:24am
#2
There have been quite a few requests for instructions on how to use motor groups and creating a drivetrain with more than 2 motors in VEXcode. I’m going to discuss these classes a little and provide a simple example.
What is a motor group ?
A motor group collects two or more motors together and allows control as if they were a single entity. Just about all motor class member functions (by that I mean spin, spinTo, setVelocity etc.) are available on the motor group class. We introduced motor…
Also look at the 2nd comment which shows how to set up the speed of motor with joystick.
When controlling multiple motor with one joystick you have to make a variable that’s outside the while loop and make the variable equal the joystick value
Then put the variable inside the motor speed.
Also use
int=Variablehere;
2 Likes
Do I write it like:
int ch1;
ch1 = controller1.axis1();
It said it had problem called controller1 axis 1 doesn’t have a call operator
How to solve this?
kaelem
August 6, 2020, 6:45am
#4
You must append .value to that. So it would be Controller1.axis1.value()
You also don’t necessarily need to use a variable, you can insert that directly where you would put the variable/value for motor speed (in motor.spin)
1 Like
weilin
August 6, 2020, 7:38am
#5
You can take a look at this example from kb.vex.com
Get more with VEXcode
We recommend you transition to our new software. VEXcode has both block-based and text-based options, that work on Chromebooks, iPads, Android tablets, Windows and Macs. Visi...
Also, there are several video tutorial that may be helpful:
Reserved for Driver Control
Driver Control Tutorial [Arcade] (VEXCode)
Slew Rate
Hello there! Our team, 1961Z, is planning to post a few coding support videos alongside building tips and tricks for new teams planning to do VRC alongside any current teams wanting some assistance.
In terms of coding, our coder (Avi) will be posting tutorials and basic code models through VexCode. For the building tips and tricks, both our main builder (Nitin) and our 3D designer (Ayush) will be focused on the multiple types of building techniques, bracing concepts, and more.
Our main intenti…
Hello Everyone!
This summer, I am developing a series of VEXcode V5 Text tutorials to help all VRC teams. I am a graduating senior. Since I have used VCS and VEXcode since their initial release, I’d like to pass on my knowledge.
I would like my tutorial series to be as useful for teams as possible. I have outlined a 29-video series. My goal is for each video to be about 3 minutes long. Ideally, new programmers (with minimal experience) could watch the entire series and acquire a solid grasp of…
6 Likes