View Single Post
  #2   Spotlight this post!  
Unread 03-06-2015, 22:06
Thad House Thad House is offline
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: Enable PWM outputs immediately on RoboRIO

Quote:
Originally Posted by lemiant View Post
I'm using a RoboRIO to build a summer project and I want to have code that starts running (and controlling PWM outputs) immediately on startup. How can I achieve that?
Or barring that, where can I look to learn more about the code execution path on a RoboRIO?
It is possible to create a lightweight library that would start up quicker then the current WPILibs. However, the FPGA will always disable all outputs until it received enabled from the Driver Station. NI and WPI do not release the code to the FPGA, so the only way to bypass this would be to rewrite all of the FPGA code.

As for looking at the execution path, here is a mirror of the WPI Libraries. For Java, the entrance point is located in this class if you want to trace the execution path.
__________________
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.