Version 4 Image

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.
This commit is contained in:
Fredric Silberberg
2014-02-25 18:43:40 -05:00
committed by Brad Miller
parent b1ef116104
commit 4546abc8c5
238 changed files with 757 additions and 21785 deletions

View File

@@ -1,31 +1,38 @@
#include "$classname.h"
$classname::$classname() {
$classname::$classname()
{
// Use Requires() here to declare subsystem dependencies
// eg. Requires(chassis);
}
// Called just before this Command runs the first time
void $classname::Initialize() {
void $classname::Initialize()
{
}
// Called repeatedly when this Command is scheduled to run
void $classname::Execute() {
void $classname::Execute()
{
}
// Make this return true when this Command no longer needs to run execute()
bool $classname::IsFinished() {
bool $classname::IsFinished()
{
return false;
}
// Called once after isFinished returns true
void $classname::End() {
void $classname::End()
{
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void $classname::Interrupted() {
void $classname::Interrupted()
{
}