summaryrefslogtreecommitdiff
path: root/gnss/gnssUmdf/Defaults.h
blob: bf78238ec6f48870411d69fd9a4fc1168573e6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*++

Copyright (c) Microsoft Corporation.  All rights reserved.

Module Name:

    defaults.h

Abstract:

    This module contains the defaults used within the Umdf Gnss Driver.

Environment:

    driver and application

--*/

#pragma once

#define GNSS_DRIVER_DDK_VERSION GNSS_DRIVER_VERSION_4
#define INVALID_SESSION_ID (0xFFFFFFFF)
#define DEFAULT_FIX_INTERVAL_SECONDS   1

static const double c_MaximumLatitude = 90.0;
static const double c_MinimumLatitude = -90.0;
static const double c_MaximumLongitude = 180.0;
static const double c_MinimumLongitude = -180.0;

#define INIT_POD_GNSS_STRUCT(pName) \
    memset((pName), 0, sizeof(*(pName))); \
    (pName)->Size = sizeof(*(pName)); \
    (pName)->Version = GNSS_DRIVER_DDK_VERSION

const GNSS_FIXDATA g_DefaultGnssFixData =
{
    sizeof(GNSS_FIXDATA),
    GNSS_DRIVER_DDK_VERSION,
    INVALID_SESSION_ID,
    { 0xCD700000, 0x1D48908 }, // an example date/time, Dec/01/2018
    TRUE,
    STATUS_SUCCESS,
    GNSS_FIXDETAIL_BASIC | GNSS_FIXDETAIL_ACCURACY,
    {
        sizeof(GNSS_FIXDATA_BASIC),
        GNSS_DRIVER_DDK_VERSION,
        // Location: Mount Rainier National Park
        46.852273,
        -121.757468,
        0.0,
        0.0,
        0.0
    },
    {
        sizeof(GNSS_FIXDATA_ACCURACY),
        GNSS_DRIVER_DDK_VERSION,
        10 // Meters accuracy
    }
};