mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Updated the HAL library to work with the new version 3 headers from NI. There were multiple changes in this verison: more PWM generators were added, so the functions for setting PWM signals have been updated. UserWatchdog has been removed, and Watchdog has been removed from WPILib to accomodate for this. Digital selection has been consolidated to one function in the NI headers, so this has been updated in the HAL. New SPI and I2C libraries have been added, but need to be implemented in the HAL before they will work.
28 lines
600 B
C++
28 lines
600 B
C++
#include "CommandBase.h"
|
|
#include "Subsystems/ExampleSubsystem.h"
|
|
#include "Commands/Scheduler.h"
|
|
|
|
// Initialize a single static instance of all of your subsystems to NULL
|
|
ExampleSubsystem* CommandBase::examplesubsystem = NULL;
|
|
OI* CommandBase::oi = NULL;
|
|
|
|
CommandBase::CommandBase(std::string name) :
|
|
Command(name)
|
|
{
|
|
}
|
|
|
|
CommandBase::CommandBase() :
|
|
Command()
|
|
{
|
|
|
|
}
|
|
|
|
void CommandBase::init()
|
|
{
|
|
// Create a single static instance of all of your subsystems. The following
|
|
// line should be repeated for each subsystem in the project.
|
|
examplesubsystem = new ExampleSubsystem();
|
|
|
|
oi = new OI();
|
|
}
|