|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Beta testers: Is anyone creating a HAL implementation for the cRIO?
Seems like it should be reasonably easy to do. Just wondering if anyone is going to do it.
|
|
#2
|
|||
|
|||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
WPI decided not to do this and not to support the cRIO at all. It was more of a move for the future if I understand correctly, but it's certaily a babystep. There are still plenty of implementation details that leak through the HAL API. Perhaps when a completely different hardware target is ported the API will become more generic.
|
|
#3
|
||||
|
||||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Ok, so WPI isn't doing it -- which makes sense.
Anyone else doing it yet? I'm sure someone will do one at some point. |
|
#4
|
||||
|
||||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Our team basically had this last year and is porting it to the roboRIO but the roboRIO version isn't in a usable state yet.
|
|
#5
|
||||
|
||||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Well, close, but not quite what I want. This year, the python wpilib will be 100% python, using ctypes to interact with the HAL library. So, to make it work for the cRio, it seems like the best way would be to implement an API compatible HAL. There are a lot of cRios out there, and I suspect for most teams they'd be useful to use for testing.
|
|
#6
|
|||
|
|||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Quote:
Instead of detecting the platform, you could also just download the correct version of your libraries to each platform. (That's what we've done with our framework to make it completely work on both platforms.) |
|
#7
|
||||
|
||||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
I suspect that writing an abstraction over the hardware abstraction layer is a bad idea.
![]() The goal of the python WPILib project is to be a python implementation of WPILib, so that it is 100% (ish) compatible, as opposed to a framework extending WPILib such as CCRE. Given that the HAL is supposed to be the hardware independent piece, I think that makes the most sense to use as our bottom edge. If one cannot port the HAL to the cRio, perhaps it should be made more abstract ![]() |
|
#8
|
|||
|
|||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Quote:
It's called WPILib. ![]() More seriously, the point is that someone's going to have to implement some abstraction for the cRIO either way - the question is at which level, and the HAL might or might not be the best level. Quote:
Quote:
While I would agree that it should be made abstract enough to cover both platforms, I doubt that the WPILib team would see this to be important enough to spend time on, as they have a large enough backlog of more relevant tasks. Still - this is your project. I suspect you could ask the WPILib team for the parts of the HAL code that they're okay with making public (or access them directly after talking to them) and then start the project of supporting the cRIO with it yourself. If you stick it on GitHub or somewhere similar, you might be able to get other teams to help out. |
|
#9
|
||||
|
||||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Quote:
![]() Quote:
Quote:
|
|
#10
|
|||
|
|||
|
Re: Beta testers: Is anyone creating a HAL implementation for the cRIO?
Quote:
Quote:
Quote:
I'd also consider helping, but I also have a large backlog of pending work. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|