View Single Post
  #4   Spotlight this post!  
Unread 03-02-2017, 12:16
Harshal Harshal is offline
Registered User
FRC #4678
Team Role: Mentor
 
Join Date: Feb 2017
Rookie Year: 2013
Location: Canada
Posts: 3
Harshal is an unknown quantity at this point
Re: Code works well, but robot will not drive

Make sure you have your SpeedController object created and initialized for the right port, if its a Can device, you can get the can ID from the WebView (Plugin or Wirelessly Connect and then go to http://172.22.11.2/). If the speed controller is plugged into the PWM, then initialize the object with the port labelled. First try setting the motor values independent of drive to make sure they are connected and working. I can provide more specific information if you provide your coding language, speed controllers, and port mapping.
Reply With Quote