Go to Post ...it takes a very special kind of person to equate bagpipes with harps. - Kevin Sevcik [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2011, 17:49
Micah Chetrit's Avatar
Micah Chetrit Micah Chetrit is offline
Registered User
FRC #3276 (NSR)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: New London - Spicer MN
Posts: 90
Micah Chetrit is on a distinguished road
Sending data to Driver station PC

Hi all, I am attempting to send 3 things to the Driver Station PC, the Input statuses, the status of the joystick (if possible), and the Image from the camera (last years version). My code looks like this:
Code:
class MecanumDefaultCode : public IterativeRobot {
AxisCamera *camera;
DriverStationLCD *driverStation;

DriverStation *ds;

public:
MecanumDefaultCode(void){
ds = DriverStation::GetInstance();

AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCamera::kResolution_320x240);
camera.WriteCompression(0);
camera.WriteBrightness(0);    
driverStation = DriverStationLCD::GetInstance();
}

void TeleopPeriodic(void){
HSLImage image;    
AxisCamera &camera = AxisCamera::GetInstance();
if (camera.IsFreshImage()) {
HSLImage *image = camera.GetImage();
	}
}
I have not been able to test this yet because I have been busy with autonomous. I was wondering if I did anything wrong or forgot anything?
Thanks in advance
Reply With Quote
Reply


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 12:27.

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