fix dependency
[profile/ivi/ico-vic-carsimulator.git] / src / CCalc.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the 
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9 /**
10  * @brief   Computation tool
11  *
12  * @file    CCalc.h
13  */
14 #ifndef CCALC_H
15 #define CCALC_H
16
17 #include <math.h>
18 #include <stdio.h>
19
20 #define WHEEL_BASE 3.0
21
22 typedef struct
23 {
24     double lat;
25     double lng;
26 } POINT;
27
28
29 /*--------------------------------------------------------------------------*/
30 /**
31  * @brief   calc direction
32  *
33  * @param[in]  azim         current direction
34  * @param[in]  delta        angle
35  * @param[in]  dist         distance
36  * @return  double      new direction
37  */
38 /*--------------------------------------------------------------------------*/
39 double CalcAzimuth(double azim, double delta, double dist);
40
41 /*--------------------------------------------------------------------------*/
42 /**
43  * @brief   calc new point
44  *
45  * @param[in]  lat          current lat
46  * @param[in]  lon          current lon
47  * @param[in]  azim         current direction
48  * @param[in]  dist         distance
49  * @return     POINT       new lat and lon
50  */
51 /*--------------------------------------------------------------------------*/
52 POINT CalcDest(double lat, double lng, double azim, double dist);
53
54 #endif // CCALC_H