Thread: Help with Code
View Single Post
  #2   Spotlight this post!  
Unread 02-12-2016, 10:49 AM
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,117
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Help with Code

I'm not a coder, but I stayed at a Holiday Inn Express last night ....


In Public Class, you create the objects for each motor controller (speedcontroller).

In Robotinit, you tell robotdrive which are your 4 drive motors.

Where do you associate the motorcontroller (victorsp1 for example) with a particular channel address (either PWM port, or CAN port)? Something like what you are doing for xboxcontroller where you associate it with Joystick(0), and then with xbutton and y button.

Last edited by rich2202 : 02-12-2016 at 10:58 AM.
Reply With Quote