WPILib 2012
WPILibRoboticsLibraryforFRC
Vision2009/FrcError.h
00001 /********************************************************************************
00002 *  Project              : FIRST Motor Controller
00003 *  File Name            : FrcError.h          
00004 *  Contributors         : JDG, ELF
00005 *  Creation Date        : August 12, 2008
00006 *  Revision History     : Source code & revision history maintained at sourceforge.WPI.edu      
00007 *  File Description     : Error handling values for C routines
00008 */
00009 /*----------------------------------------------------------------------------*/
00010 /*        Copyright (c) FIRST 2008.  All Rights Reserved.                     */
00011 /*     Open Source Software - may be modified and shared by FRC teams.        */
00012 /*   Must be accompanied by the BSD license file in $(WIND_BASE)/WPILib.      */
00013 /*----------------------------------------------------------------------------*/
00014 
00015 #ifndef __FRCERROR_H__
00016 #define __FRCERROR_H__
00017 
00018 /* Error Codes */
00019 #define ERR_VISION_GENERAL_ERROR                        166000  // 
00020 #define ERR_COLOR_NOT_FOUND                                     166100  // TrackAPI.cpp
00021 #define ERR_PARTICLE_TOO_SMALL                          166101  // TrackAPI.cpp
00022 
00023 #define ERR_CAMERA_FAILURE                                      166200  // AxisCamera.cpp
00024 #define ERR_CAMERA_SOCKET_CREATE_FAILED         166201  // AxisCamera.cpp
00025 #define ERR_CAMERA_CONNECT_FAILED                       166202  // AxisCamera.cpp
00026 #define ERR_CAMERA_STALE_IMAGE                          166203  // AxisCamera.cpp
00027 #define ERR_CAMERA_NOT_INITIALIZED                      166204  // AxisCamera.cpp
00028 #define ERR_CAMERA_NO_BUFFER_AVAILABLE          166205  // AxisCamera.cpp
00029 #define ERR_CAMERA_HEADER_ERROR                         166206  // AxisCamera.cpp
00030 #define ERR_CAMERA_BLOCKING_TIMEOUT                     166207  // AxisCamera.cpp
00031 #define ERR_CAMERA_AUTHORIZATION_FAILED         166208  // AxisCamera.cpp
00032 #define ERR_CAMERA_TASK_SPAWN_FAILED            166209  // AxisCamera.cpp
00033 #define ERR_CAMERA_TASK_INPUT_OUT_OF_RANGE      166210  // AxisCamera.cpp
00034 #define ERR_CAMERA_COMMAND_FAILURE                      166211  // AxisCamera.cpp
00035 
00036 /* error handling functions */
00037 int GetLastVisionError();
00038 char* GetVisionErrorText(int errorCode);
00039 
00040 #endif
00041 
 All Classes Functions Variables