So I’m using Jpearman’s TBH code and it doesn’t matter the target velocity I set for the motors, they always end up in 127 and I can’t turn off the flywheel motors with the joystick although I can use my other motors while the flywheel is on.
Im new to RobotC so feel free to make any suggestions
Specs
-Quad encoder on Port 1 geared 1:5 from the Flywheel Axle attached in motors and sensors to port 4 (FlyMaster)
-4 motor single flywheel slaved to port 4 named Flymaster
Also in this lines…
long
FwMotorEncoderGet()
{
return( FlyEnc );
}
Should I used
return( FlyEnc);
or should I use the next line if motor FlyMaster is attached to the the quad encoder FlyEnc on motors and sensors setup (The Encoder and the motor are not in the same “stage”)
return{nmotorencoder(FlyMaster);
Another question is if how do I start this program on my robot while the robot is plugged to RobotC so I can see the variables and sensors because so far I can view the variables and sensors on the debugger but the flywheel doesn’t move.