View Single Post
  #3   Spotlight this post!  
Unread 22-12-2008, 21:43
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Axis Camera in C++; code error??

Change the lines
Code:
if (StartCameraTask ()== -1) {
printf( "Failed to spawn camera task; Error code %s",
GetErrorText (GetLastError()) };
to
Code:
if (StartCameraTask() == -1)
	printf("Failed to spawn camera task; Error code %s", GetVisionErrorText(GetLastVisionError()));
It should compile now (See FrcError.h for these declarations - the headers were probably changed after the documentation was written).

(P.S. Your #includes for servo.h, simplerobot.h, sensorbase.h, error.h and errorbase.h are extraneous, since they are included by wpilib.h)