View Single Post
  #3   Spotlight this post!  
Unread 01-23-2016, 01:34 PM
kgross kgross is offline
Registered User
no team
 
Join Date: Jan 2016
Location: Idaho
Posts: 1
kgross is an unknown quantity at this point
Re: Extremely Broken Code Please Help!

Not sure what is causing your error yet, but it sounds like an undefined pointer.

But you should move a few lines around in your Motor1 and Motor2 classes. Right now you have the instantiation of the SpeedController above your constructor.


SpeedController motor = new Victor(4);

public Motor1() {


}

change it to.
Private SpeedController motor;
public Motor1(){
motor = new Victor(4);
}
Reply With Quote