mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Removed analog and digital module numbers
AnalogModule and DigitalModule classes still exist, at least until they are refactored into the classes that use them. Change-Id: I5544d5418822f19d54ba0a5d651e64fad8b7b10d
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
#include "Compressor.h"
|
||||
#include "WPIErrors.h"
|
||||
|
||||
void Compressor::InitCompressor(uint8_t module) {
|
||||
void Compressor::InitCompressor(uint8_t pcmID) {
|
||||
m_table = 0;
|
||||
m_pcm_pointer = initializeCompressor(module);
|
||||
m_pcm_pointer = initializeCompressor(pcmID);
|
||||
|
||||
SetClosedLoopControl(true);
|
||||
}
|
||||
@@ -26,8 +26,8 @@ Compressor::Compressor() {
|
||||
*
|
||||
* @param module The module number to use (1 or 2)
|
||||
*/
|
||||
Compressor::Compressor(uint8_t module) {
|
||||
InitCompressor(module);
|
||||
Compressor::Compressor(uint8_t pcmID) {
|
||||
InitCompressor(pcmID);
|
||||
}
|
||||
|
||||
Compressor::~Compressor() {
|
||||
@@ -160,4 +160,3 @@ void Compressor::ValueChanged(ITable* source, const std::string& key, EntryValue
|
||||
else Stop();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user