So yesterday I was watching Jacob Wake’s Vex PROS tutorial
VIDEO
and in the video he was setting up his robot motors.
He defines the motors by writing #define rightmotor 2 and #define leftmotor 3
I also noticed that he writes a command called motorset.
The problem is, none of these commands work. IDK why, maybe its because the guy I watched coded for cortex and I’m coding for v5.
Using Pros for VEX EDR v5, how do you set up your motors and make it move? Could anyone recommend a tutorial for setting up v5 motors using pros?
M8R
September 2, 2019, 7:58pm
2
PROS for cortex (2) is very different from PROS 3 (v5). Look at the PROS 3 documentation for help .
3 Likes
Barin
September 2, 2019, 8:03pm
3
PROS for Cortex and PROS for V5 have very different APIs.
If you are not comfortable using PROS from just the tutorials and API documentation on the PROS website, you should start by developing a working knowledge of C and/or C++ instead of looking for a PROS-specific tutorial.
I recommend you take the time to develop a working understanding of (pure) C++ before trying to do too much with VEX C++. You will almost certainly gain a much better grasp of programming this way rather than trying to retroactively learn C++ as you program your robot.
As @Barin said I highly recommend learning Cpp before dealing with Vex programming. If you are on a mac cpp is already installed on your computer otherwise I would recommend downloading Eclipse or some other IDE and create “pure” cpp code. A website that I have found to be quite useful is Learn CPP . It starts at the basics and works its way into more complicated topics. It gives example code and testing it in your own environment and then modifying really helps you to understand the topic. If …
3 Likes
CarCar
September 2, 2019, 8:16pm
4
The default programs that are opened should include code already for making the motor move.
1 Like
Barin
September 2, 2019, 8:56pm
5
PROS does not do this. The template is literally the minimum viable code to get started with PROS; it is virtually useless on its own.
I am confused from PROS for Cortex.
CarCar
September 2, 2019, 8:57pm
6
but it still makes the motor move
1 Like
Wes8
September 2, 2019, 9:30pm
7
No, the default code includes motor initialization, controller initialization, and printing readouts:
This is the code that is generated using prosv5 conduct new .
. Perhaps it worked differently in older versions, but the latest version of PROS will include code to move the motors based on joystick input.
It’s easy to overlook the fact that some code is already there when you start the program, because the first thing most people do is immediately delete it.
2 Likes
system
Closed
September 1, 2020, 9:30pm
8
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.