Go to file
Daniel Barlow 173a440bd6 rotate the offscreen map
this takes us from 60% cpu to about 20% (on my laptop, your hardware
may vary) when we're travelling in a straight line, as we render the
offscreen map only when the bounds change or the target orientation
changes, not every time we move
2025-06-15 17:52:06 +01:00
pkgs rotate the offscreen map 2025-06-15 17:52:06 +01:00
.gitignore first commit, should have done this a day ago 2024-02-18 21:58:03 +00:00
configuration.nix fix perms on gnss socket 2025-05-15 18:59:17 +01:00
default.nix add qmi-nmea placeholder (copy of qmicli) 2024-07-23 20:56:53 +01:00
Makefile using lk2nd/extlinux so nixos can manage /boot 2025-05-11 23:59:44 +01:00
README rename smooth-course -> orientation 2025-06-09 10:21:58 +01:00

Config for my moto harpia to turn it into a bike computer. We will
need

- working gps
- bluetooth (ble) stuff
- wayland "cage" compositor
- an app
- rsync service so that trails can be downloaded to a computer
- ip connectivity with flight mode
 - give it telent and dandroid as APs
 - use rfkill aggressively to save battery
 

Absent any reason I should not write the app in fennel I'm going to
write the app in fennel. I want it to

- display speed/cadence/time of day/power
- show where I am on a map
- record trail of where I've been (note: indoor counts too)

can we somehow do non-flakey bluetooth (is it dbus?)



cool extras
===========

adjust screen brightness 

* turn off backlight when stopped after a minute
* dim the screen when following a route and the next
 navigation instruction is still some way off
* tap to wake screen

note that IPS LCD requires as much battery for dark pixels
as light ones, so we get no power saving by colouring only part
of the screen

------

we need to not rotate the text labels
which means we need to redraw whenever the angle changes
which is much more often than when we cross a tile boundary
so caching the bitmap isn't going to work

put map features in a table in app-state keyed on tile key
use the fetch on-complete callback to update app-state directly.
side issue: we could move widget updates from update-app-state
 to the timer
 





maybe we could put the polylines in app-state. if we store

------

random notes follow ...



https://git.syndicate-lang.org/tonyg/squeak-phone/raw/commit/474960ddc665ed445a1f5afb0164fe39057720f9/devices/pine64-pinephone/modem-docs/80545ST10798A_LM940_QMI_Command_Reference_Guide_r3.pdf


---- 

https://git.syndicate-lang.org/tonyg/squeak-phone/raw/commit/474960ddc665ed445a1f5afb0164fe39057720f9/devices/pine64-pinephone/modem-docs/80545ST10798A_LM940_QMI_Command_Reference_Guide_r3.pdf

----