View Single Post
  #1   Spotlight this post!  
Unread 11-01-2016, 17:15
curtis0gj curtis0gj is offline
Registered User
FRC #5033 (Beavertronics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Canada
Posts: 121
curtis0gj will become famous soon enough
Re: Gyroscope Programming

Quote:
Originally Posted by curtis0gj View Post
Howdy fellow robotic enthusiasts. I am in dire need of assistance programming our teams gyroscope. I am working with the iterative robot template and I am trying to instantiate my gyroscope. However, I always get the error, "Cannot instantiate the type Gyro." I have read that it has to do with instantiating interfaces. But I am bad at programming so I am unsure about this. Please help.

Here is a glimpse of what I am trying to accomplish.

Gyro gyro = new Gyro(1);

I think I have solved the error last year it was, Gyro gyro = new Gyro(1); to instantiate. This year it seems to be, AnalogGyro gyro = new AnalogGyro(1); If someone could confirm this that would be awesome.

Last edited by curtis0gj : 11-01-2016 at 17:19.
Reply With Quote