MCPcopy Create free account
hub / github.com/comaps/comaps / SetSpeedMetersPerSecond

Method SetSpeedMetersPerSecond

libs/routing/turns_notification_manager.cpp:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void NotificationManager::SetSpeedMetersPerSecond(double speed)
263{
264 // When the quality of GPS data is bad the current speed may be less then zero.
265 // It's easy to reproduce at an office with Nexus 5.
266 // In that case zero meters per second is used.
267 m_speedMetersPerSecond = std::max(0., speed);
268}
269
270void NotificationManager::Reset()
271{

Callers 3

UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.64