This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
rc2007-rescue/LineSensor.cpp
2007-04-13 17:58:03 +00:00

16 lines
206 B
C++

#include "LineSensor.h"
#include "adc.h"
LineSensor::LineSensor(int id) {
this->id = id;
updateValue();
}
float LineSensor::updateValue() {
value = getADCValue(id)/1024.0;
return value;
}