View Single Post
  #2   Spotlight this post!  
Unread 01-02-2009, 16:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Digital Sidecars and Drive code

You can do this, but the Drive class was intended to be pretty simple, thus cuts down on parameters by making constants internally. To make a Drive that uses other than slot 4, you need to open the Open Motor VI. Notice that on its diagram it is opening motors and building an array, but never wires in a module number. This means that it will always use the default of 4.

One thing to do is Save the Drive Open to your own folder under a different name replacing the current one throughout your program (the first radio option in the Save As... dialog). Next modify it to use the slots you want for each motor. The rest of the Drive stuff doesn't care and works fine with either slot.

Greg McKaskle