MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / stopReceiving

Method stopReceiving

Tactility/Source/service/gps/GpsService.cpp:182–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void GpsService::stopReceiving() {
183 LOGGER.info("Stop receiving");
184
185 setState(State::OffPending);
186
187 auto lock = mutex.asScopedLock();
188 lock.lock();
189
190 for (auto& record: deviceRecords) {
191 stopGpsDevice(record);
192 }
193
194 rmcTime = 0;
195 ggaTime = 0;
196
197 setState(State::Off);
198}
199
200void GpsService::onGgaSentence(hal::Device::Id deviceId, const minmea_sentence_gga& gga) {
201 LOGGER.debug("[device {}] LAT {} LON {}, satellites: {}", deviceId, minmea_tocoord(&gga.latitude), minmea_tocoord(&gga.longitude), gga.satellites_tracked);

Callers 1

onGpsToggledMethod · 0.80

Calls 3

infoMethod · 0.80
asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected