Carrier solution type using callback

Hi, I’m tying to read the carrier solution type using callback. I have a ZED-F9P unit and running this example:https://github.com/sparkfun/SparkFun_u- … AV_PVT.ino

I can easily read the GNSS fixe type with these lines:

byte fixType = ubxDataStruct.fixType; // Print the GNSS fixe type
  Serial.print(F(" Fix: "));
  if (fixType == 0) Serial.print(F("No fix"));
  else if (fixType == 1) Serial.print(F("Dead reckoning"));
  else if (fixType == 2) Serial.print(F("2D"));
  else if (fixType == 3) Serial.print(F("3D"));
  else if (fixType == 4) Serial.print(F("GNSS + Dead reckoning"));
  else if (fixType == 5) Serial.print(F("Time only"));

But how do i read the carrier solution type?

https://github.com/sparkfun/SparkFun_u- … cts.h#L382

Hi @–dd–,

ubxDataStruct.flags.bits.carrSoln will give you direct access to the carrSoln

ubxDataStruct.flags.all will give you the whole of flags and you can manually extract carrSoln from the two most significant bits if you wish.

Cheers,

Paul

Thanks! That did the trick!