Go to Post I'm probably going to make somebody feel old right now... - NorviewsVeteran [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 23-01-2015, 16:22
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
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.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #2   Spotlight this post!  
Unread 23-01-2015, 17:55
Quantum Byte's Avatar
Quantum Byte Quantum Byte is offline
Lead Programmer
AKA: Domenic
FRC #4776 (S.C.O.T.S. Bots)
Team Role: Programmer
 
Join Date: May 2012
Rookie Year: 2011
Location: Hartland, Michigan
Posts: 16
Quantum Byte is an unknown quantity at this point
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   Spotlight this post!  
Unread 23-01-2015, 18:18
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by Thad House View Post
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.
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   Spotlight this post!  
Unread 23-01-2015, 18:33
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Documentation on the RoboRIO HAL

Quote:
Originally Posted by fsilberberg View Post
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.
Thanks. I'll definitely take a look into that. It will most likely be a summer project, but figured I could get started work on it now. When the season is over ill probably borrow one of our RoboRIOs to see if mono will even run on it, and if it will run fast enough on it.

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.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #5   Spotlight this post!  
Unread 24-01-2015, 12:06
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Yes, it is softfp. We haven't noticed any performance issues with the libraries as of now.
  #6   Spotlight this post!  
Unread 24-01-2015, 17:43
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Documentation on the RoboRIO HAL

Quote:
Originally Posted by Thad House View Post
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.
yes, but softfp != soft

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.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #7   Spotlight this post!  
Unread 24-01-2015, 18:24
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Documentation on the RoboRIO HAL

Quote:
Originally Posted by byteit101 View Post
yes, but softfp != soft

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.
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.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #8   Spotlight this post!  
Unread 25-01-2015, 01:05
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 255
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Documentation on the RoboRIO HAL

Quote:
Originally Posted by Thad House View Post
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.
Of course you can use our precompiled HAL! The shared library is actually compiled as part of the official wpilib source build (thanks to a patch I submitted), but it's not distributed/installed on the roborio by default, which is why we're hosting it ourselves for installation.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #9   Spotlight this post!  
Unread 25-01-2015, 01:40
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Documentation on the RoboRIO HAL

Quote:
Originally Posted by Peter Johnson View Post
Of course you can use our precompiled HAL! The shared library is actually compiled as part of the official wpilib source build (thanks to a patch I submitted), but it's not distributed/installed on the roborio by default, which is why we're hosting it ourselves for installation.
Thats great. I hope to have this up early summer. The only thing I need to figure out is how to get the few the custom structures to work. Everything else will most likely just take work and time (plus a RoboRIO for me to test this on that doesnt interfere with the team.)
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi