Comments (2)
Does this solution still work if someone creates a static (global) instance of an object? Those constructors run before any other code is run, and in random order.
from allwpilib.
No. A static global instance will run even before HAL_initialize
gets called. There's really not much we can do about that case, other than to document "don't do that", unless we want to add initialization checks everywhere that pessimize performance for everyone just to fix that corner case.
from allwpilib.
Related Issues (20)
- Use codegen for Datalog entry types
- Add array and/or string support to `SimDevice`/`SimDeviceSim`. HOT 2
- Mode-exit functions are missing from Robot.java in several templates HOT 1
- Make DriverStation error and warning reporting easier in C++ HOT 3
- Improve the Java Units Library with additional methods and unit types HOT 4
- Sim GUI does not disable joystick data in auto mode
- [wpimath] Remove or deprecate unused WheelPositions interface/concept HOT 4
- Provide a way to flush NetworkTables to the wire immediately HOT 8
- Question about New Radio from Vivid Hosting wireless connection HOT 4
- NetworkTables server crashes when publishers are rapidly created and closed HOT 6
- Closing NetworkTables publisher doesn't flush queued data HOT 3
- Use Jinja to generate PWM motor controller classes
- Include sendable type information in topic metadata
- [Build] Consider breaking up wpimath / geometry classes HOT 5
- Make encoder classes unit-aware
- Feedforward Javadocs use incorrect terminology
- Consider adding VirtualSubsystems? HOT 2
- Add DataLog support for logging stdout/stderr
- Add 2D addressable LED display class
- Rotation2d(0,0) should be some sort of NaN HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allwpilib.