![]() |
Several questions (language comparison)
Our team (well, I, as our only veteran programmer) is trying to decide on the language to program the robot in next year. While thinking this over, I have come up with several questions.
Please correct me if I'm wrong in these questions. In the C++ WPILib, is there a way to set thread priorities? I believe it can be done in both LabVIEW and Java. What about UDP communication? I know LabVIEW contains primitives, but is this doable in Java and C++? Is there some sort of event handling available? Could I, for example, run a section of code whenever a new image is available from the camera, or run a section of code when a digital input changes without polling? I'll post more questions when I can think of them. Thank you for any help. |
Re: Several questions (language comparison)
I can help answer one or two of your questions, and hopefully someone else can step in to fill in any gaps in my answers and answer the other questions.
Quote:
Quote:
|
Re: Several questions (language comparison)
I'll look up VxWorks calls. Any additional help on this would be appreciated.
Any clue if all of the standard library is available? I don't have the software environment set up (I'm on Linux here) so I can't test anything. Thank you for your help. |
Re: Several questions (language comparison)
Quote:
Quote:
Quote:
Any class that inherits from InterruptableSensorBase (That means DigitalInput, but not AnalogChannel) can interrupt the code. I think the code was somewhere along the lines of this: Code:
DigitalInput *sensor;No idea if an equivalent exists in Java |
Re: Several questions (language comparison)
Okay, so I think I'm starting to get a better idea of this.
I guess I'll have to install WindRiver to look at more documentation -- I cannot find those interrupt functions in the WPILib user's guide, and they do not have the same names as the VxWorks ones. Thank you for the help. |
Re: Several questions (language comparison)
The interrupt functions aren't in the documentation. We had to figure out how to use them ourselves
|
Re: Several questions (language comparison)
For now, we only have one computer usable (i.e. a laptop other than the Classmate) for programming the robot, but it is running Linux.
Therefore, I'll probably (I'm still very undecided about all this) suggest Java. I'm willing to use my laptop as the team's programming laptop, if I can get NetBeans installed. I'll start working on it soon. Thank you. |
Re: Several questions (language comparison)
Quote:
|
Re: Several questions (language comparison)
Quote:
|
Re: Several questions (language comparison)
Quote:
|
Re: Several questions (language comparison)
Quote:
The interrupt is setup through WPILib, so I have no idea if interrupts during interrupts are enabled (never seen any problems though). |
Re: Several questions (language comparison)
Quote:
Or are you talking milliseconds? |
Re: Several questions (language comparison)
Quote:
|
| All times are GMT -5. The time now is 03:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi