Esempio n. 1
0
/* GPS configuration. Must be called on ack message reception while
   gps_status_config < GPS_CONFIG_DONE */
void gps_configure ( void ) {
  if (ubx_class == UBX_ACK_ID) {
    if (ubx_id == UBX_ACK_ACK_ID) {
      gps_status_config++;
    }
  }
  gps_configuring = user_gps_configure(gps_status_config);
}
Esempio n. 2
0
void gps_configure(void)
{
  static uint32_t count = 0;
  /* start configuring after having received 50 bytes */
  if (count++ > 50) {
    gps_configuring = user_gps_configure(gps_status_config++);
  }
}