View Single Post
  #12   Spotlight this post!  
Unread 24-02-2014, 21:20
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Autonomous starving teleop?

Quote:
Originally Posted by Mark McLeod View Post
You have two different devices called "Garra"
One is a solenoid and the other is a motor.
That's going to be causing trouble and driving up the loop time on one of your Periodic Task loops.
Oh, OH!
Code alert.

So you're saying that I can't use the same name for two different refnums, even if they are different types?

For some reason I assumed that since I need to use specific instances of the put and get refnums for different devices, the name pool for these different devices were unique... but sounds like not !!! Dumb me!!! I also called both the motor and solenoid for the Collector "Collector".

Yes, I'm doing this and yet they "appear" to work... I may be getting mass errors........ but the devices do work... How is that possible?

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor