View Single Post
  #6   Spotlight this post!  
Unread 02-02-2017, 16:48
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 73
dvanvoorst is an unknown quantity at this point
Re: Programming the Spark Motor Controller C++

Try changing your else condition to run the motor in reverse instead of stopped - then you'll have positive indication that things are hooked up and talking. Then it'll be narrowed down to a button issue.

Code:
if(driveStick->GetRawButton(4)) 
{ 
	spark1->Set(1); 
} 
else 
{ 
	spark1->Set(-1); 
}
__________________

Reply With Quote