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

Method OnCompassUpdate

libs/map/framework.cpp:219–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void Framework::OnCompassUpdate(CompassInfo const & info)
220{
221#ifdef FIXED_LOCATION
222 CompassInfo rInfo(info);
223 m_fixedPos.GetNorth(rInfo.m_bearing);
224#else
225 CompassInfo const & rInfo = info;
226#endif
227
228 if (m_drapeEngine != nullptr)
229 m_drapeEngine->SetCompassInfo(rInfo);
230}
231
232void Framework::SwitchMyPositionNextMode()
233{

Callers 2

mainFunction · 0.45
OnCompassUpdatedMethod · 0.45

Calls 2

GetNorthMethod · 0.80
SetCompassInfoMethod · 0.80

Tested by

no test coverage detected