View Single Post
  #1   Spotlight this post!  
Unread 11-06-2010, 15:04
Straberrie's Avatar
Straberrie Straberrie is offline
The Plague
AKA: Rebecca
FRC #0375 (Robotic Plague)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 59
Straberrie will become famous soon enough
Setting Max Speed?

Hey!

My team is using a four-wheeled holonomic drive. We are using four Victors.

Quote:

RobotDrive myRobot;
Victor VictorFrontLeft;
Victor Victor RearLeft;
Victor VictorFrontRight;
Victor VictorRearRight;
Joystick Joystick;

.....
......

myRobot(4,1,3,2);
Joystick(3);
VictorFrontLeft (4),
VictorRearLeft (1),
VictorFrontRight(3),
VictorRearRIght (2)
......

......

In Operated Control:

myRobot.HolonomicDrive( Joystick.GetMagnitude (), JoyStick.GetDirectionDegrees (), JoyStick.GetTwist());

.....
The drive itself works. I attempted using:

Quote:
myRobot.SetLeftRightMotorSpeeds (0.1, 0.1);
to set max speed that Victors can operate the motors at so that the drive would be more controllable, but it didn't work.

How would I set max speed of a Victor?

Thank you very much!
__________________
Team 375: The Robotic Plague
Current Robot: I-Chihuahua
Last Event: Big Apple Breakaway