inav icon indicating copy to clipboard operation
inav copied to clipboard

Adding Distance to Home in Smartport Telemetry

Open elepete opened this issue 9 years ago • 7 comments

In case of interest for others. To measure distances I am sending (uint32_t)GPS_distanceToHome in the RPM field. With that I can measure distances to my (home location). To measure distance between 2 positions away from home location I am reseting home location by a switch during flight. The code change needed in smartport.c is simple, and can be posted in case of interest. Just posting here in case this could be of interest as feature to others.

elepete avatar Jan 29 '17 19:01 elepete

Why not to add it as a custom sensor? SmartPort protocol allows it after all?

DzikuVx avatar Jan 29 '17 20:01 DzikuVx

If that's the case then the best way would be IMHO to include the home coordinates. It's trivial to get the distance from it and you can use it for more advanced stuff, like heading-to-home or a map.

rb1205 avatar Jan 30 '17 09:01 rb1205

Anyone going to implement this?

digitalentity avatar Feb 07 '17 14:02 digitalentity

I might give it a try as Custom sensor. With my schedule, not sooner than march :)

DzikuVx avatar Feb 07 '17 15:02 DzikuVx

@DzikuVx so 1.7 is fine then :wink:

digitalentity avatar Feb 07 '17 15:02 digitalentity

@DzikuVx - thank you, but you may not need to do that I have all code (which is tiny) misusing RPM ready - I will modify to a custom sensor and share, so no need for you to do that work - having that by end of March is no issue

elepete avatar Feb 12 '17 13:02 elepete

Implementation in place in #1414

DzikuVx avatar Mar 15 '17 17:03 DzikuVx