Thread: Arduino and FRC
View Single Post
  #2   Spotlight this post!  
Unread 19-04-2014, 00:09
tech2077 tech2077 is offline
Registered User
AKA: Matthew Skolaut
FRC #3847 (Spectrum 3847)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Houston
Posts: 21
tech2077 is an unknown quantity at this point
Re: Arduino and FRC

Hello,

Quote:
motor1.write(usb1.btnX());
motor2.write(usb1.btnB());
This will not work as expected as the button functions return boolean instead of int or byte, you need to pass 0-255 to the write functions for the motors in order to have them move.

Also, in order to use the spikes, you need to use two outputs per spike relay, as it has an A and B input, in addition to ground.
Reply With Quote