New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Special Funcion: Set GPS Home Position (wish) #4431
Comments
Oh, this is a perfect idea! I hope we are heard... |
Nice ideas, it will require an EEROM format change. Other possibility would be a new Lua function.
Could you explain this, not sure what you mean. |
http://openrcforums.com/forum/viewtopic.php?f=86&t=9412 A standard timer function can call this new Special Function periodically. |
Are you running while flying or something like that, because I still cannot understand the need, sorry |
Yes, you walk or drive and follow your glider. The record is near 300 km. |
Then I think you probably want a radio with GPS inside rather than this solution, as it seems nearly impossible to assess when a flying device is straight above you to get a proper home position (which would always move if you are in a driving car anyway |
There is a GPS inside the radio, connected to the SPort in the module bay. It needs a different sensor ID to work, but it is tested already. Both GPS can be logged, the only disadvantage is that the pilot position can not yet be updated. |
Ok, so what you need is the capability to set an "external" GPS to be treated as internal really, no ? |
If the home position was associated with the telemetry sensor you could have multiple, and it would only be needed to reset said sensor. No EEPROM change needed. |
There is a GPS in the Glider "GPSair" and a GPS in the TX "GPStx". I can see both in the telemtry screens, because they have different sensor IDs. I can log both GPS. If i move with the TX, it would be great to have a chance to update the pilote position with the coordinates of "GPStx". GPS distance would calculate always the true distance between plane ="GPSair" and pilot ="GPStx". Presumably FrTX in the Horus does this already. |
Or if dist could take two param (haven't check feasibility) |
Never thought about this, but it should work too! |
Is it not possibele to make GPS as sensor and the inbuild mems as input? (Horus) |
The internal GPS is already available to Lua for people to be able to write exactly that kind of scripts. |
Not sure, if you mean Horus or Taranis. But no matter, in both cases you are right. The disadvantage is, that the LUA calculated distance does not appear in the log. Is there a chance, to overwrite pilote position from LUA? Or make it accessible for LUA? |
2.2 lets you define custom sensors from lua that can be logged along the others. You can also write your own logs from lua since you can write to files. |
Great news, especially the first part, because there is no need to merge the logs afterwards. Can you point me to a description or are there comments in the code? |
My LUA Ref bookmark missed the autoupdate ;) |
Parameter: (Which) GPS
Useful in following situations:
The text was updated successfully, but these errors were encountered: