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
DoubleSolenoid.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 DOUBLE_SOLENOID_H_
8
#define DOUBLE_SOLENOID_H_
9
10
#include "SolenoidBase.h"
11
#include "LiveWindow/LiveWindowSendable.h"
12
#include "tables/ITableListener.h"
13
14
22
class
DoubleSolenoid
:
public
SolenoidBase
,
public
LiveWindowSendable
,
public
ITableListener
{
23
public
:
24
typedef
enum
{kOff, kForward, kReverse} Value;
25
26
explicit
DoubleSolenoid
(uint32_t forwardChannel, uint32_t reverseChannel);
27
DoubleSolenoid
(uint8_t moduleNumber, uint32_t forwardChannel, uint32_t reverseChannel);
28
virtual
~DoubleSolenoid
();
29
virtual
void
Set
(Value value);
30
virtual
Value
Get
();
31
32
void
ValueChanged
(
ITable
* source,
const
std::string& key,
EntryValue
value,
bool
isNew);
33
void
UpdateTable
();
34
void
StartLiveWindowMode
();
35
void
StopLiveWindowMode
();
36
std::string
GetSmartDashboardType
();
37
void
InitTable
(
ITable
*subTable);
38
ITable
*
GetTable
();
39
40
private
:
41
virtual
void
InitSolenoid();
42
43
uint32_t m_forwardChannel;
44
uint32_t m_reverseChannel;
45
uint8_t m_forwardMask;
46
uint8_t m_reverseMask;
47
48
ITable
*m_table;
49
};
50
51
#endif
SolenoidBase
Definition:
SolenoidBase.h:19
DoubleSolenoid::StopLiveWindowMode
void StopLiveWindowMode()
Definition:
DoubleSolenoid.cpp:165
DoubleSolenoid::UpdateTable
void UpdateTable()
Definition:
DoubleSolenoid.cpp:152
DoubleSolenoid::DoubleSolenoid
DoubleSolenoid(uint32_t forwardChannel, uint32_t reverseChannel)
Definition:
DoubleSolenoid.cpp:66
ITable
Definition:
ITable.h:26
DoubleSolenoid::GetTable
ITable * GetTable()
Definition:
DoubleSolenoid.cpp:181
DoubleSolenoid::InitTable
void InitTable(ITable *subTable)
Definition:
DoubleSolenoid.cpp:176
LiveWindowSendable
Definition:
LiveWindowSendable.h:17
DoubleSolenoid::GetSmartDashboardType
std::string GetSmartDashboardType()
Definition:
DoubleSolenoid.cpp:172
DoubleSolenoid
Definition:
DoubleSolenoid.h:22
DoubleSolenoid::StartLiveWindowMode
void StartLiveWindowMode()
Definition:
DoubleSolenoid.cpp:158
DoubleSolenoid::ValueChanged
void ValueChanged(ITable *source, const std::string &key, EntryValue value, bool isNew)
Definition:
DoubleSolenoid.cpp:142
DoubleSolenoid::Set
virtual void Set(Value value)
Definition:
DoubleSolenoid.cpp:106
DoubleSolenoid::~DoubleSolenoid
virtual ~DoubleSolenoid()
Definition:
DoubleSolenoid.cpp:92
DoubleSolenoid::Get
virtual Value Get()
Definition:
DoubleSolenoid.cpp:132
EntryValue
Definition:
ITable.h:13
ITableListener
Definition:
ITableListener.h:26
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.