View Single Post
  #5   Spotlight this post!  
Unread 10-01-2015, 14:36
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 142
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: Code Not Working

I am very confused why you have two RobotDrive instances, but I would recommend checking the lights on the Jaguars to verify they are receiving commands.

EDIT: I re-read it and found the error. operatorControl() is only called once. You should replace "if" with "while" to make it run constantly until telop is finished. Also add a Timer.delay(0.05) at the end to free up the cpu.

Last edited by Joey1939 : 10-01-2015 at 14:38.