Files
allwpilib/wpilibc/wpilibC++/include/Compressor.h
thomasclark 59dfb4d216 Removed the old compressor code
Change-Id: Ia36724f42254d49238db687c62f339c2172ba582
2014-06-09 11:12:44 -04:00

56 lines
1.0 KiB
C++

/*
* Compressor.h
*/
#ifndef Compressor_H_
#define Compressor_H_
#include "HAL/HAL.hpp"
#include "SensorBase.h"
#include "tables/ITableListener.h"
#include "LiveWindow/LiveWindowSendable.h"
/**
* CAN pneumatic control module compressor
*
* Created on: May 28, 2014
* Author: Thomas Clark
*
*/
class Compressor: public SensorBase, public LiveWindowSendable, public ITableListener {
public:
Compressor(uint8_t module);
Compressor();
~Compressor();
void Start();
void Stop();
bool Enabled();
bool GetPressureSwitchValue();
float GetCompressorCurrent();
void SetClosedLoopControl(bool on);
bool GetClosedLoopControl();
void UpdateTable();
void StartLiveWindowMode();
void StopLiveWindowMode();
std::string GetSmartDashboardType();
void InitTable(ITable *subTable);
ITable *GetTable();
void ValueChanged(ITable* source, const std::string& key, EntryValue value, bool isNew);
protected:
void *m_pcm_pointer;
private:
void InitCompressor(uint8_t module);
void SetCompressor(bool on);
ITable *m_table;
};
#endif /* Compressor_H_ */