Clean up new C++ commands (#2027)

- Remove use of std::set. The only place std::set was actually used was in ParallelRaceGroup,
but this was of minimal utility as ParallelRaceGroup checked for duplicate subsystem
requirements, so it would be very unusual to end up with duplicate commands
in any case; replaced it with a vector.
- Remove use of std::unordered_map except for SelectCommand. Replaced with vector.
- Use pImpl idiom for CommandScheduler
- Minimize include files (remove unnecessary ones)
- Reformat include file order for consistency
This commit is contained in:
Peter Johnson
2019-11-05 20:52:49 -08:00
committed by GitHub
parent 39f46ceab6
commit e6f5c93ab1
43 changed files with 280 additions and 236 deletions

View File

@@ -9,8 +9,9 @@
#include <frc/smartdashboard/SendableBuilder.h>
#include <frc/smartdashboard/SendableRegistry.h>
#include <frc2/command/Command.h>
#include <frc2/command/CommandScheduler.h>
#include "frc2/command/Command.h"
#include "frc2/command/CommandScheduler.h"
using namespace frc2;