a library to read sonar values with the MaxbotixLV sonar range sensors..
Embed:
(wiki syntax)
Show/hide line numbers
MaxbotixLV.h
00001 #ifndef MBED_MAXBOT_H 00002 #define MBED_MAXBOT_H 00003 00004 #include "mbed.h" 00005 00006 class MaxbotixLV{ 00007 public: 00008 MaxbotixLV(PinName analogIN); 00009 void setVoltage(float voltIn); 00010 void setScale(float scaler); 00011 float getAnalog(); 00012 float getInches(); 00013 00014 protected: 00015 AnalogIn _analogIn; 00016 float _voltIn; 00017 float _scaler; 00018 }; 00019 00020 #endif
Generated on Fri Jul 22 2022 02:59:41 by 1.7.2