1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 |
|
20 */ |
|
21 #ifndef SUPL_RRLP_ASN1_COMMON |
|
22 #define SUPL_RRLP_ASN1_COMMON |
|
23 |
|
24 /** |
|
25 Constants used in the encoding of position values. |
|
26 |
|
27 @see CSuplMessageBase::PopulatePosition() |
|
28 */ |
|
29 const TReal KLbsLatitudeConst = 93206.7555555556; // 2^23 / 90 |
|
30 const TReal KLbsLongitudeConst = 46603.3777777778; // 2^24 / 360 |
|
31 const TInt KLbsMaxAltitude = 32767; // 2^15 - 1 |
|
32 |
|
33 /** |
|
34 Constants used in velocity conversion |
|
35 1 meter per second = 3.6 kilometers per hour |
|
36 |
|
37 @see CSuplMessageBase::PopulatePosition() |
|
38 */ |
|
39 const TReal KLbsMpsKmphConstant = 3.6; |
|
40 |
|
41 /** |
|
42 Constants used in encoding of uncertainty data |
|
43 |
|
44 @see CSuplStart::Uncertainty() |
|
45 @see CSuplStart::UncertaintyAltitude() |
|
46 */ |
|
47 const TReal KLbsLogOnePointOne = 0.095310179804324860043952123280765; |
|
48 const TReal KLbsLogOnePointZeroTwoFive = 0.02469261259037150101430767543669; |
|
49 const TInt KLbsMaxUncert = 127; |
|
50 |
|
51 /** |
|
52 Number of milliseconds in a second |
|
53 |
|
54 @see CSuplStart::SetQoP |
|
55 */ |
|
56 const TInt KLbsMilliSeconds = 1000000; |
|
57 |
|
58 |
|
59 #endif // SUPL_RRLP_ASN1_COMMON |
|