|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef SIMPSYCONSTANTS_H |
|
21 #define SIMPSYCONSTANTS_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <lbs.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // Number of data items in Simulation Movement mode configuration file |
|
28 const TInt KNoOfSimulatedDataItems = 10; |
|
29 // The maximum length of an NMEA sentence |
|
30 const TInt KMaxSentenceLength = 82; |
|
31 // Error code for simulated failed request |
|
32 const TInt KErrorCodeForFailedRequest = KPositionQualityLoss; |
|
33 |
|
34 const TReal KToSeconds = 1000000; |
|
35 const TInt KToMicroSeconds = 1000000; |
|
36 const TReal KEarthRadius = 6371010; |
|
37 const TReal KToRadians = KPi/180; |
|
38 const TReal KToDegrees = 180/KPi; |
|
39 const TReal KLongitudeUpperBound = 180.0; |
|
40 const TReal KFullCircle = 360.0; |
|
41 const TInt KTimesToRandom = 20; |
|
42 |
|
43 // CONSTANTS |
|
44 _LIT(KPosSimulationFileExtension, ".sps"); |
|
45 _LIT(KPosNMEAFileExtension, ".nme"); |
|
46 |
|
47 #endif // SIMPSYCONSTANTS_H |
|
48 |
|
49 // End of File |