View Single Post
  #6   Spotlight this post!  
Unread 24-01-2016, 17:42
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 194
ahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant future
Re: Robot preferences help

Alright, I think we have it figured out enough for how we'll use it. I think the issue is that we were trying to send the value into a function in a command group for autonomous. When we try to just read it in our teleop mode, we don't have the same problem. It's weird, but I think we can work around it.

If anyone else has a similar issue, for our command based programming we did still have to declare are variable in Robot class as:
public static double speed;

My suspicion is that it has to do with being used in a command group. When a new command group was made for our sendableChooser, it must poll what that variable is at that point in time. Then when that command group is called later, it must not look at if the variable has changed.

Thanks!
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)
Reply With Quote