Interface class for the Max Botix ultrasonic range finder model 1210. It includes input methods for PWM, Analog, and Serial. A PwmIn class was created to allow the PWM input to be read. Now includes automatic range update via interrupts.
Diff: MB1210.h
- Revision:
- 1:b533b95e807a
- Parent:
- 0:3d969e0b4ca0
- Child:
- 2:997b4057c879
--- a/MB1210.h Sun Aug 22 21:18:20 2010 +0000 +++ b/MB1210.h Mon Aug 23 01:12:57 2010 +0000 @@ -16,7 +16,7 @@ float UnitFactor; float PwmScalingFactor; float AnalogScalingFactor; - char Workspace[4]; + unsigned short Range; public: MB1210(PinName pw, PinName an, PinName tx, PinName rx);