コード例 #1
0
ファイル: gps_ubx.c プロジェクト: AshuLara/paparazzi
/* 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);
}
コード例 #2
0
ファイル: gps_mtk.c プロジェクト: dreadlord1984/paparazzi
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++);
  }
}