Comments (3)
From how my team (2609) uses RobotContainer and TimedRobot, I think:
- TimedRobot, because TimedRobot adds a few methods necessary for a Command-Based robot (e.g.
startCompetition()
), although these could be moved intoIterativeRobotBase
. robotPeriodic()
andteleopPeriodic()
could be marked final to force teams to use commands (and useaddPeriodic()
for any functions that should run repeatedly)RobotContainer
hasgetAutonomousCommand()
andconfigureBindings()
, which could both be eliminated as they are called once and never used again:getAutonomousCommand()
is called once inautonomousInit()
, andconfigureBindings()
is called in the constructor. If teams had a long list of bindings to configure or a long method of choosing their autonomous mode, they could create their own function (no need to require teams to use one).
from allwpilib.
Since RobotContainer
's functions aren't required, RobotContainer
's other main function (holding subsystems) could be moved to CommandRobot
.
from allwpilib.
CommandRobot
should definitely hold subsystems.
from allwpilib.
Related Issues (20)
- Synchronize C++ and Java versions of BooleanEvent HOT 1
- Trigger.onChange has no test HOT 3
- cmake build broken as of 2024.1.1 HOT 11
- WPIMath JNI classes should use single runtime loader
- .type NT topics do not always set the SmartDashboard property
- Move apriltag into the monorepo via upstream_utils HOT 2
- Move imgui into the monorepo via upstream_utils HOT 1
- Move libssh into the monorepo via upstream_utils HOT 1
- Move GoogleTest into the monorepo via upstream_utils HOT 2
- Move libssh into the monorepo via upstream_utils HOT 1
- Add upstream_utils commands for bumping a tag and exporting patches HOT 1
- AHRS crashes on startup due to RuntimeDetector removal HOT 11
- Offset LED patterns only offset writes, not reads
- #6767 drastically increases test times HOT 2
- Add compression option for WPILOGs HOT 2
- HALSimWS sends 1 and 0 instead of true and false for `SimBoolean`s
- "Can't load AMD 64-bit .dll on a IA 32-bit platform" HOT 4
- `SimDeviceSim.resetData()` Disables `SimDevice` Messages on Open WebSockets Connections
- Occasional hang due to deadlock when HALSimWS connection is present while `SimDevice` is being created. HOT 7
- 2026: deprecate robotInit HOT 12
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.