Quote:
Originally Posted by kinganu123
Yes
But let your programmers know that they'll have to write their own class that uses the analogchannel. This mainly pertains to java, not sure about other languages.
|
Yeah, I do both electrical and programming in our 4 person team. So something like this:
Code:
float distanceToTarget = 0.0;
...
AnalogChannel *rangefinder;
...
rangefinder = new AnalogChannel(1);
...
rangefinder->getVoltage() * multiplier = distanceToTarget;