mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-14 09:25:30 -04:00
Made a GeoPos widget for lon/lat/alt entry and display (APRS...)
Cleaned up the GeoMap view, can be used as input
This commit is contained in:
parent
a5f0f72ea1
commit
fba5b507ad
10 changed files with 285 additions and 165 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
namespace ui {
|
||||
|
||||
#define DEG_TO_RAD(d) (d * (2 * pi) / 360.0)
|
||||
|
||||
using Coord = int16_t;
|
||||
using Dim = int16_t;
|
||||
|
||||
|
@ -326,6 +328,8 @@ struct TouchEvent {
|
|||
Type type;
|
||||
};
|
||||
|
||||
Point polar_to_point(float angle, uint32_t distance);
|
||||
|
||||
} /* namespace ui */
|
||||
|
||||
#endif/*__UI_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue