Optimaze with new mbed os for study

Dependencies:   TS_DISCO_F746NG BSP_DISCO_F746NG Graphics

Committer:
karpent
Date:
Fri Nov 04 01:02:37 2016 +0000
Revision:
0:d8b9955d2b36
Child:
1:5e49b46de1b0
Initial revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
karpent 0:d8b9955d2b36 1 //
karpent 0:d8b9955d2b36 2 // Location.h
karpent 0:d8b9955d2b36 3 //
karpent 0:d8b9955d2b36 4
karpent 0:d8b9955d2b36 5 #pragma once
karpent 0:d8b9955d2b36 6
karpent 0:d8b9955d2b36 7 class Location
karpent 0:d8b9955d2b36 8 {
karpent 0:d8b9955d2b36 9 public:
karpent 0:d8b9955d2b36 10 Location();
karpent 0:d8b9955d2b36 11 Location(float x, float y, float height);
karpent 0:d8b9955d2b36 12
karpent 0:d8b9955d2b36 13 /// <summary>
karpent 0:d8b9955d2b36 14 /// Sets the location.
karpent 0:d8b9955d2b36 15 /// </summary>
karpent 0:d8b9955d2b36 16 /// <param name="x">The x position win world coordinates in [km].</param>
karpent 0:d8b9955d2b36 17 /// <param name="y">The y position win world coordinates in [km].</param>
karpent 0:d8b9955d2b36 18 /// <param name="height">Target height in [km].</param>
karpent 0:d8b9955d2b36 19 void SetLocation(float x, float y, float height);
karpent 0:d8b9955d2b36 20
karpent 0:d8b9955d2b36 21 /// <summary>
karpent 0:d8b9955d2b36 22 /// Sets the location angular.
karpent 0:d8b9955d2b36 23 /// </summary>
karpent 0:d8b9955d2b36 24 /// <param name="distance">The distance.</param>
karpent 0:d8b9955d2b36 25 /// <param name="azimuth">The azimuth.</param>
karpent 0:d8b9955d2b36 26 /// <param name="elevation">The elevation.</param>
karpent 0:d8b9955d2b36 27 void SetLocationAngular(float distance, float azimuth, float elevation);
karpent 0:d8b9955d2b36 28
karpent 0:d8b9955d2b36 29 float GetX();
karpent 0:d8b9955d2b36 30 float GetY();
karpent 0:d8b9955d2b36 31 float GetHeight();
karpent 0:d8b9955d2b36 32
karpent 0:d8b9955d2b36 33 float GetDistance();
karpent 0:d8b9955d2b36 34 float GetAzimuth();
karpent 0:d8b9955d2b36 35 float GetElevation();
karpent 0:d8b9955d2b36 36
karpent 0:d8b9955d2b36 37 void ToAngular();
karpent 0:d8b9955d2b36 38 void ToCartesian();
karpent 0:d8b9955d2b36 39
karpent 0:d8b9955d2b36 40 private:
karpent 0:d8b9955d2b36 41 float _x;
karpent 0:d8b9955d2b36 42 float _y;
karpent 0:d8b9955d2b36 43 float _h;
karpent 0:d8b9955d2b36 44 float _distance;
karpent 0:d8b9955d2b36 45 float _azimuth;
karpent 0:d8b9955d2b36 46 float _elevation;
karpent 0:d8b9955d2b36 47 };
karpent 0:d8b9955d2b36 48