geeksville / Gaggle

An Android application for glider pilots
http://groups.google.com/group/gaggle-users/
33 stars 16 forks source link

color coded lift/sink in the map view #68

Closed relet closed 12 years ago

relet commented 12 years ago

I noticed you had begun to code this, but not integrated with the OSM view. I extended the "speed-optimized" OSM onDraw method with buffered per point color information.

The color information is generated once (currently using basic lift/sink wrt the previous point).

There is a configurable detail cutoff for the last thousand points, before which lines are painted in larger blocks and in neutral red. Lift / sink color coding does not take into account max/min lift as before, but is in a static range between -5 to 5 m/s, resulting in a more uniform color scheme for all flights. These values could be fetched from the vario cutoff configuration or an own config entry.