|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Documentation on the RoboRIO HAL
Is there any documentation on the new RoboRIO HAL interface. I would like to look into creating a .Net library, and documentation would make the task much easier.
|
|
#2
|
||||
|
||||
|
Re: Documentation on the RoboRIO HAL
Nope. I managed to get one working though.
Basically, you just create a PWM object. Then, call the get() function, and that will return a bool/boolean of if a magnet is detected. |
|
#3
|
|||
|
|||
|
We don't have any official documentation on the HAL. Your best bet is to take a look at the source for C++ and see how it interacts with the HAL. If you have questions, you can send me a message, I'd be happy to help. It can definitely be confusing to look at.
|
|
#4
|
||||
|
||||
|
Re: Documentation on the RoboRIO HAL
Quote:
One thing I remember reading is that the OS on the RoboRIO is softFP. Is that true? Seems like that would cause performance issues, even with the current languages. |
|
#5
|
||||
|
||||
|
Re: Documentation on the RoboRIO HAL
Quote:
softfp uses the hardware floating point unit, but is conformant with the software floating point abi (soft). While softfp and hard both use the hardware floating point unit, they are not abi compatible. |
|
#6
|
||||
|
||||
|
Re: Documentation on the RoboRIO HAL
Ok. I did find a precompiled Mono for armv7-vfp, so that should make doing this much easier. I was able to get the header files working in c#, and I'll have to ask the RobotPy people if I can use their precompiled HAL they use for python, but if possible this project shouldnt be too hard.
|
|
#7
|
|||
|
|||
|
Re: Documentation on the RoboRIO HAL
Quote:
|
|
#8
|
||||
|
||||
|
Re: Documentation on the RoboRIO HAL
Quote:
|
|
#9
|
|||
|
|||
|
Yes, it is softfp. We haven't noticed any performance issues with the libraries as of now.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|