Go to Post Mess up something important and you lose. Just like real life. - DonRotolo [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
  #5   Spotlight this post!  
Unread 09-01-2013, 12:28
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

These are snippets from our code files, using an iterative robot template from last year. The talon channel (7) is the last channel we tested.

The class definition:
Code:
class FRC2410Robot : public IterativeRobot {
	Talon* talonTest;
public:
	void RobotInit();
	void TeleopContinuous();
};
The robot setup:
Code:
void FRC2410Robot::RobotInit()
{
	talonTest = new Talon(7);
}
The Teleop code:
Code:
void FRC2410Robot::TeleopContinuous()
{
	testing->Set(1.0);
}
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


All times are GMT -5. The time now is 18:24.

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