Cleaned up integer type usage in wpilibc (#92)

Replaced all unsigned types to signed and int32_t with int in wpilibc
This commit is contained in:
Tyler Veness
2016-09-06 00:01:45 -07:00
committed by Peter Johnson
parent ff93050b31
commit 0cd05d1a42
169 changed files with 914 additions and 943 deletions

View File

@@ -25,11 +25,11 @@ class DigitalOutput : public DigitalSource,
public ITableListener,
public LiveWindowSendable {
public:
explicit DigitalOutput(uint32_t channel);
explicit DigitalOutput(int channel);
virtual ~DigitalOutput();
void Set(bool value);
bool Get();
uint32_t GetChannel() const override;
bool Get() const;
int GetChannel() const override;
void Pulse(float length);
bool IsPulsing() const;
void SetPWMRate(float rate);
@@ -52,7 +52,7 @@ class DigitalOutput : public DigitalSource,
std::shared_ptr<ITable> GetTable() const;
private:
uint32_t m_channel;
int m_channel;
HAL_DigitalHandle m_handle;
HAL_DigitalPWMHandle m_pwmGenerator;