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

Function init

Tactility/Source/hal/gps/Ublox.cpp:316–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool init(::Device* uart, GpsModel model) {
317 LOGGER.info("U-blox init");
318 switch (model) {
319 case GpsModel::UBLOX6:
320 return initUblox6(uart);
321 case GpsModel::UBLOX7:
322 case GpsModel::UBLOX8:
323 case GpsModel::UBLOX9:
324 return initUblox789(uart, model);
325 case GpsModel::UBLOX10:
326 return initUblox10(uart);
327 default:
328 LOGGER.error("Unknown or unsupported U-blox model");
329 return false;
330 }
331}
332
333bool initUblox10(::Device* uart) {
334 uint8_t buffer[256];

Callers 1

threadMainMethod · 0.70

Calls 5

initUblox6Function · 0.85
initUblox789Function · 0.85
initUblox10Function · 0.85
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected