|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "fake_gnss.h"#include "gnss_core.h"Go to the source code of this file.
Classes | |
| struct | sink_t |
| struct | rig_t |
Macros | |
| #define | CHECK(c) |
Functions | |
| static void | truth (uint32_t t, ubx_pvt_t *v) |
| static void | record (void *ctx, uint8_t type, const void *data, uint8_t len) |
| static void | rig (rig_t *r, uint32_t module_baud) |
| static void | run (rig_t *r, uint32_t until) |
| static void | test_cold_start_at_9600_reaches_10hz (void) |
| static void | test_warm_module_at_115200_needs_no_baud_change (void) |
| static void | test_nak_restarts_and_recovers (void) |
| static void | test_silence_then_power_cycle_reconfigures (void) |
| static void | test_pps_is_stamped (void) |
| int | main (void) |
| #define CHECK | ( | c | ) |
Definition at line 9 of file test_gnss_core.c.
Referenced by test_cold_start_at_9600_reaches_10hz(), test_nak_restarts_and_recovers(), test_pps_is_stamped(), test_silence_then_power_cycle_reconfigures(), and test_warm_module_at_115200_needs_no_baud_change().
| int main | ( | void | ) |
Definition at line 136 of file test_gnss_core.c.
References test_cold_start_at_9600_reaches_10hz(), test_nak_restarts_and_recovers(), test_pps_is_stamped(), test_silence_then_power_cycle_reconfigures(), and test_warm_module_at_115200_needs_no_baud_change().
|
static |
Definition at line 37 of file test_gnss_core.c.
References sink_t::bad, sink_t::last, sink_t::n, REC_GNSS, and rec_gnss_t.
Referenced by test_layerx_vv::_pressurise(), feedtwin.session.burn::burn(), rig(), and rig_init().
|
static |
Definition at line 54 of file test_gnss_core.c.
References fake_gnss_init(), fake_gnss_io(), gnss_core_init(), r, record(), and truth().
Referenced by test_cold_start_at_9600_reaches_10hz(), test_nak_restarts_and_recovers(), test_pps_is_stamped(), test_silence_then_power_cycle_reconfigures(), and test_warm_module_at_115200_needs_no_baud_change().
|
static |
Definition at line 63 of file test_gnss_core.c.
References fake_gnss_emit(), gnss_core_feed(), gnss_core_poll(), r, and until().
|
static |
Definition at line 72 of file test_gnss_core.c.
References CHECK, GNSS_RUN, ubx_pvt_t::hmsl_mm, ubx_pvt_t::lat_e7, ubx_pvt_t::lon_e7, r, rig(), truth(), and ubx_pvt_t::vel_d_mms.
Referenced by main().
|
static |
|
static |
Definition at line 127 of file test_gnss_core.c.
References CHECK, gnss_core_set_pps(), r, and rig().
Referenced by main().
|
static |
Definition at line 112 of file test_gnss_core.c.
References CHECK, fake_gnss_power_cycle(), GNSS_RUN, r, and rig().
Referenced by main().
|
static |
|
static |
Definition at line 17 of file test_gnss_core.c.
References ubx_pvt_t::fix_type, ubx_pvt_t::flags, ubx_pvt_t::hacc_mm, ubx_pvt_t::hmsl_mm, ubx_pvt_t::itow_ms, ubx_pvt_t::lat_e7, ubx_pvt_t::lon_e7, ubx_pvt_t::num_sv, ubx_pvt_t::pdop_e2, ubx_pvt_t::vacc_mm, and ubx_pvt_t::vel_d_mms.
Referenced by fake_gnss_init(), fake_gnss_power_cycle(), rig(), and test_cold_start_at_9600_reaches_10hz().