Go to Post Chief Delphi's Greatest Hits vol. 47: Overreactions to Q&A responses - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 06-03-2010, 16:15
Briyanna Briyanna is offline
Registered User
FRC #2895
 
Join Date: Mar 2010
Location: Queens, New York
Posts: 2
Briyanna is an unknown quantity at this point
Compressor Code problems

Team 2895
So our team is some what new to the programming thing and we have been having problems with our code. We finally got the compressor declared but when we did that the code came up with another error saying: In member function `virtual void BuiltinDefaultCode::TeleopPeriodic()': 'class Compressor' has no member named 'Set' request for member `Set' in `((BuiltinDefaultCode*)this)->BuiltinDefaultCode::compressor', which is of non-class type `Compressor*'. Now we cant seem to get this error to go away can anyone help us?

Quote:
//*Compressor

if (Joystick(1).GetRawButton(10)) //if button 10 is pressed on joystick 1 compressor will turn on
{
compressor= new Compressor(1, 1);
compressor ->Set(true);
}
if (Joystick(1).GetRawButton(11)) //if button 11 is pressed on joystick 1 compressor will turn off
{
compressor.Set(false);

}
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
solenoid and compressor code johncap100 NI LabVIEW 11 28-02-2010 21:34
Compressor Code Robopanda6 Java 1 17-02-2010 13:31
Compressor Code causes No Robot Code Error sircedric4 C/C++ 25 03-02-2010 10:13
compressor problems Spiders Electrical 8 10-02-2008 19:27
Compressor Code gacp Programming 2 19-02-2005 16:18


All times are GMT -5. The time now is 13:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi