Library for reading out the LCM 101 sensor and also usable for S610 loadcells
Fork of LCM101 by
Lcm101 Class Reference
Simple class to read out an LCM101 S-beam force sensor connected to an analog input. More...
#include <lcm101.h>
Public Member Functions | |
Lcm101 (PinName pin_a_in, float offset, float factor) | |
float | getForceRaw () |
float | getForce () |
float | get_offset () |
float | get_factor () |
Detailed Description
Simple class to read out an LCM101 S-beam force sensor connected to an analog input.
Definition at line 10 of file lcm101.h.
Constructor & Destructor Documentation
Lcm101 | ( | PinName | pin_a_in, |
float | offset, | ||
float | factor | ||
) |
Member Function Documentation
float get_factor | ( | ) |
float getForce | ( | ) |
- Returns:
- force value kOffset_ + kFactor_ * getForceRaw();
Generated on Thu Jul 14 2022 23:40:15 by 1.7.2