View Single Post
  #5   Spotlight this post!  
Unread 04-02-2007, 19:44
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Code to have speed of motors dependent on how hard you push the joystick

YOu can guarantee it by checking the values of the pwm outputs right before the PutData call at the end of Process_Data_From_Master_uP.

Since the PutData call is (essentially) when the data actually goes out to the robot, if the PWMs are the right value then, then you know that it isn't a code problem.

Are you testing the motors with a load on them? They might spin fast even at low power settings if there is no load.