Default motor output on VEX Cortex processor? Is it 100% by default or 50%?

Default motor output on VEX Cortex processor? Is it 100% by default or 50%?

You’re going to need to explain a bit more context. What programming environment are you using, what are you trying to do? In most instances I’m not aware of there having been a “default” motor power for cortex programming.

4 Likes

When programming a legacy cortex brain using legacy 2-wire motors, and with sample code provided by Robot C, the joy-con on the controller activate motors for movement. Compared to smart motors on a V5 where the user can literally set the power output from the controller/brain, does the legacy cortex default to 50% power? Or, does it default to 100% power to motors?

There is no default. Any motor move command will include the power value.

1 Like

Thank you for the feedback. The reason is ask is that the sample code provided in Robot C only includes assigning configured motors to joy cons on channels 1/2 and 3/4 with no power values indicated. Once the program is uploaded to the processor, the user can immediately drive the robot. The thing is, we don’t know for sure what the motor output is set to since the sample code only shows the leftMotor and rightMotor assigned to ch1/2 and 3/4 with no other values seen.

can you show the sample code you are using, that might help us understand the question.
In general, for the cortex with RobotC, motors will accept values in the range +/- 127 and joystick output was also in the same range, that allows joystick values to be directly assigned to motors.

3 Likes
#pragma config(Motor,  port2,           rightMotor,    tmotorNormal, openLoop, reversed)
#pragma config(Motor,  port3,           leftMotor,     tmotorNormal, openLoop)
task main ()
{
	  while(1 == 1)
	  {
	    motor[leftMotor]  = vexRT[Ch3];   // Left Joystick Y value
	    motor[rightMotor] = vexRT[Ch2];   // Right Joystick Y value
      }
}

ok, so as I explained, you will send variable power to the motor depending on how far you have moved the joystick. Push the joystick all the way and you will have maximum power.

5 Likes

Perfect! That is exactly what I needed to know. Thank you!

1 Like