|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Multiple definitions in some C functions?
Hey Forums.
With the traditional C wrappers provided from WPI, I have found what I think what might be a bug and need to find a workaround. IsAutonomous(), IsOperatorControl(), and IsDisabled() seem to all be both defined in SimpleCRobot.cpp and in CDriverStation.cpp. I can't just not use SimpleCRobot because that's the only place that the watchdog functions are defined... I could go without them, but it really doesn't seem like a good idea. Ideas, or am I doing something wrong here? |
|
#2
|
||||
|
||||
|
Re: Multiple definitions in some C functions?
in the simple robot, they are defined for ease of use, you dont have to create a DS instance, if you look at the code, the simple robot, they are wrappers for the DS functions
|
|
#3
|
|||
|
|||
|
Re: Multiple definitions in some C functions?
Let me clarify some: I need to use the Driver Station part for the digital inputs. However, it also seems that one needs to use SimpleCRobot in the project for the watchdog timer. The conflicting functions are defined in both.
Perhaps this would work better if we knew C++, eh? ^_^'''' |
|
#4
|
||||
|
||||
|
Re: Multiple definitions in some C functions?
Yes! you need C++ to do that, and C++ is also called C with Classes.
but you don't need the DS to do that, you should use the DigitalInput class, and it should work in C(I think) but for next season, learn C++, much easier |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple Definitions | bronxbomber92 | Programming | 4 | 02-08-2008 05:03 PM |
| Error - symbol 'command_list' has multiple definitions. | Moloch | Programming | 2 | 02-17-2005 05:32 PM |
| Error - symbol 'e' has multiple definitions. HELLPPPPP | BookerT | Programming | 2 | 01-24-2005 09:50 PM |
| Need for some official DEFINITIONS | dhitchco | Rules/Strategy | 4 | 01-17-2005 03:59 PM |