View Single Post
  #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