zexinliao / opentx

Automatically exported from code.google.com/p/opentx
0 stars 0 forks source link

GPS math and calculation capability (Enhancement) [Ultimate goal is tracking progress on a GPS course] #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which board (stock / gruvin9x / sky9x / Taranis) are you using?
TARANIS

What is your openTx FW version?
opentx-taranis-noheli-notemplates-en-r2834.bin

What is your openTx EEPROM version?
215

What steps will reproduce the problem?
1.  The GPS values reported in the telemetry are not usable.  (They are in NMEA 
format (or HH:MM:SS) and as such they cannot be directly used for calculations. 
 (need to be converted to decimal degrees)
2.  There are no functions for entering waypoints (reference GPS positions)
3.  There are no functions for calculating distance/heading from existing 
position to/from waypooints.

What is desired:
A)  A way to enter a "course" (series of GPS positions)
B)  A way to use current GPS position and course positions to calculate 
progress around the course.
        i) Distance to/from
        ii) Heading to/from
C) A way to use the distance/heading values during flight (announce with voice 
for example).
D) Expose these to the user for programming to allow advanced GPS courses and 
scoring of GPS-based flight tasks.
E) Expose this into the logging function.

My ultimate goal would be to have OPENTX perform the function currently 
performed by the "SKYNAVIGATOR"  (see manual at 
http://www.icare-rc.com/document/SkyNav%20Handbook%20v%20_2_.pdf)

Implementation possibilities:
i) Send the GPS and altitude information externally through serial port and 
perform all of the calculations and in-flight reporting via an external app on 
a cell phone.
ii) Expose just enough math and variables and allow users to act on this using 
Lua scripts.
iii) Develope the custom functions, variables, and math functions and allow 
users to program these via custom functions. (In the normal manner in OPENTX)

What is the expected output? What do you see instead?

Please provide any additional information below.

See attached file for SKYNAVIGATOR (GPS Triangle racing system) which could per 
performed in OPENTX transmitter using Vario and GPS sensors.

Original issue reported on code.google.com by pch...@comcast.net on 31 Dec 2013 at 10:55

Attachments:

GoogleCodeExporter commented 8 years ago
Please forgive me.  This is not a "DEFECT" but a request for "ENHANCEMENT"  I 
did not know how to set the entry to "ENHANCEMENT"

Original comment by pch...@comcast.net on 31 Dec 2013 at 11:06

GoogleCodeExporter commented 8 years ago
I think this would be best done with a lua script once the functionality is 
added. 

Original comment by bernet.a...@gmail.com on 4 Jan 2014 at 5:40