Lines Matching +full:double +full:- +full:channel
8 // http://www.apache.org/licenses/LICENSE-2.0
47 static constexpr double roundFactor = 10000; // 3 decimal places
48 static constexpr double maxVoltageReading = 1.8; // pre sensor scaling
49 static constexpr double minVoltageReading = 0;
55 std::vector<thresholds::Threshold>&& thresholdsIn, const double scaleFactor, in ADCSensor()
67 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in ADCSensor()
115 // In case a channel has a bridge circuit,we have to turn the bridge on in setupRead()
120 std::chrono::milliseconds(bridgeGpio->setupTimeMs)); in setupRead()
132 self->inputDev, *buffer, '\n', in setupRead()
138 self->readBuf = buffer; in setupRead()
139 self->handleResponse(ec); in setupRead()
154 self->readBuf = buffer; in setupRead()
155 self->handleResponse(ec); in setupRead()
180 double nvalue = (rawValue / sensorScaleFactor) / scaleFactor; in handleResponse()
201 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in handleResponse()
216 std::cerr << "adcsensor " << self->name << " read cancelled\n"; in handleResponse()
227 self->setupRead(); in handleResponse()