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
Solenoid.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 SOLENOID_H_
8
#define SOLENOID_H_
9
10
#include "SolenoidBase.h"
11
#include "LiveWindow/LiveWindowSendable.h"
12
#include "tables/ITableListener.h"
13
14
21
class
Solenoid
:
public
SolenoidBase
,
public
LiveWindowSendable
,
public
ITableListener
{
22
public
:
23
explicit
Solenoid
(UINT32 channel);
24
Solenoid
(UINT8 moduleNumber, UINT32 channel);
25
virtual
~Solenoid
();
26
virtual
void
Set
(
bool
on);
27
virtual
bool
Get
();
28
29
void
ValueChanged
(
ITable
* source,
const
std::string& key,
EntryValue
value,
bool
isNew);
30
void
UpdateTable
();
31
void
StartLiveWindowMode
();
32
void
StopLiveWindowMode
();
33
std::string
GetSmartDashboardType
();
34
void
InitTable
(
ITable
*subTable);
35
ITable
*
GetTable
();
36
37
38
private
:
39
void
InitSolenoid();
40
41
UINT32 m_channel;
42
43
ITable
*m_table;
44
};
45
46
#endif
Generated on Tue Feb 5 2013 00:55:09 for WPILibC++ by
1.8.1.2
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.