Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
CounterBase.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) FIRST 2008. All Rights Reserved. */
3
/* Open Source Software - may be modified and shared by FRC teams. The code */
4
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5
/*----------------------------------------------------------------------------*/
6
7
#ifndef CPPCOUNTER_BASE_H_
8
#define CPPCOUNTER_BASE_H_
9
15
class
CounterBase
16
{
17
public
:
18
typedef
enum
{k1X, k2X, k4X} EncodingType;
19
20
virtual
~
CounterBase
() {}
21
virtual
void
Start() = 0;
22
virtual
int32_t Get() = 0;
23
virtual
void
Reset() = 0;
24
virtual
void
Stop() = 0;
25
virtual
double
GetPeriod() = 0;
26
virtual
void
SetMaxPeriod(
double
maxPeriod) = 0;
27
virtual
bool
GetStopped() = 0;
28
virtual
bool
GetDirection() = 0;
29
};
30
31
#endif
CounterBase
Definition:
CounterBase.h:15
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.