a library to read sonar values with the MaxbotixLV sonar range sensors..
MaxbotixLV.h
- Committer:
- kaushalpkk
- Date:
- 2011-07-15
- Revision:
- 0:b99b1e0e3290
File content as of revision 0:b99b1e0e3290:
#ifndef MBED_MAXBOT_H
#define MBED_MAXBOT_H
#include "mbed.h"
class MaxbotixLV{
public:
MaxbotixLV(PinName analogIN);
void setVoltage(float voltIn);
void setScale(float scaler);
float getAnalog();
float getInches();
protected:
AnalogIn _analogIn;
float _voltIn;
float _scaler;
};
#endif