![]() |
AnalogChannel as both an accumulator AND a normal input?
Can this be done?
In other words, the Gyro class uses an accumulator channel and does not give me a public method to get the instantaneous reading from the sensor. Is this because an input can be either an instantaneous read OR an accumulator, or is it just a WPILib design issue? Thanks! |
Re: AnalogChannel as both an accumulator AND a normal input?
You should be able to do this. The Gyro class has a constructor that accepts an existing AnalogChannel object.
Code:
/**Code:
AnalogChannel *channel = new AnalogChannel(1); |
Re: AnalogChannel as both an accumulator AND a normal input?
Quote:
Code:
return m_voltsPerDegreePerSecond*m_analog->GetVoltage(); |
| All times are GMT -5. The time now is 02:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi