Last night I added WPILib to my project so I could use the Wait() function. When I went to compile the code, I got this error:
Code:
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "user_routines_fast.c" -fo="user_routines_fast.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066 -D_FRC_BOARD
C:\Robotics\camera streamlined\API.h:303:Error [1034] previous definition of macro 'BAUD_4800' does not agree
C:\Robotics\camera streamlined\API.h:304:Error [1034] previous definition of macro 'BAUD_9600' does not agree
C:\Robotics\camera streamlined\API.h:305:Error [1034] previous definition of macro 'BAUD_14400' does not agree
C:\Robotics\camera streamlined\API.h:306:Error [1034] previous definition of macro 'BAUD_19200' does not agree
C:\Robotics\camera streamlined\API.h:308:Error [1034] previous definition of macro 'BAUD_38400' does not agree
C:\Robotics\camera streamlined\API.h:309:Error [1034] previous definition of macro 'BAUD_57600' does not agree
C:\Robotics\camera streamlined\API.h:310:Error [1034] previous definition of macro 'BAUD_115200' does not agree
I believe these values are conflicting with ones in the serial_ports file. Then again, I could be wrong.
Any ideas how to resolve this?
Also, I was a bit unsure of the library files I had to use. Do I only use the two library files included in the WPILib distribution, or do I use the WPILib library and then either the FRC_library or the FRC_alltimers included with the default code?