Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Sending data to Driver station PC (http://www.chiefdelphi.com/forums/showthread.php?t=92032)

Micah Chetrit 16-02-2011 17:49

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


All times are GMT -5. The time now is 17:46.

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