View Single Post
  #2   Spotlight this post!  
Unread 04-02-2014, 09:59
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Re: Compressor will not turn on.

Try this:

Compressor *airCompressor;

airCompressor = new Compressor(1,1);
airCompressor->Start();

The code you supplied has an inadvertant error, you have declared a "new" of your variable, not of the base Compressor class. This should have given you a compiler error.
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639