Skip to content
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

0.1.8 Pre-release #227

Merged
merged 383 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
ee20c14
chore(ini): Disable IMU for T-DECK
jgauchia Sep 24, 2024
4ad57a2
Merge branch 'devel_lilygo_tdeck' of https://github.com/jgauchia/IceN…
jgauchia Sep 24, 2024
8ba4cdb
fix(settings): Fix default settings
jgauchia Sep 24, 2024
20a3415
feat(lvgl): Add T-DECK keyboard support
jgauchia Sep 24, 2024
e9e3366
chore(lvgl): Add keyboard log
jgauchia Sep 24, 2024
16c16b5
fix(lvgl): Fix LVGL Keypad callback
jgauchia Sep 24, 2024
b4e85cb
fix(lvgl): Fix Keyboard , create group
jgauchia Sep 24, 2024
09ddc10
fix(lvgl): Fix Keyboard , create group
jgauchia Sep 24, 2024
14c8948
fix(lvgl): Fix Keyboard , create group
jgauchia Sep 24, 2024
02fc542
style(lvgl): Missing semicolon
jgauchia Sep 24, 2024
df35cc5
test(lvgl): Temporary disable on screen keyboard
jgauchia Sep 24, 2024
0d7047f
feat(lvgl): Add ENTER Key event
jgauchia Sep 24, 2024
daf08cf
feat(lvgl): Add ESC Key Event
jgauchia Sep 24, 2024
80ce63a
feat(lvgl): Adjust Waypoint options icons size
jgauchia Sep 24, 2024
7345cf0
test(sd): Add log for waypoint open file
jgauchia Sep 24, 2024
018016e
test(sd): Add vTaskDelay for waypoint open file
jgauchia Sep 24, 2024
632fe5a
fix(lvgl): Set messagebox font size
jgauchia Sep 24, 2024
63f6c70
test(sd): Remove vTaskDelay
jgauchia Sep 24, 2024
ab38c88
feat(maps/render): Add Map size for TDECK
jgauchia Sep 24, 2024
f47f925
feat(maps/render): Add Map size for TDECK
jgauchia Sep 24, 2024
378cfe1
test(sd): Add vTaskDelay in map reading
jgauchia Sep 24, 2024
6d503de
test(sd): Force SD Chip Select in waypoint list
jgauchia Sep 24, 2024
04c952a
added missing pins for missing SPI devices
hpsaturn Sep 25, 2024
e68a4ae
added compatibility for FreeRTOS (tests ok)
hpsaturn Sep 25, 2024
e5b1264
fixed issue around SPI on LGFX init. (screen freezing)
hpsaturn Sep 25, 2024
ac92c18
fix(sd): Workaround T-DECK SD Init bus shared
jgauchia Sep 25, 2024
6bc1cfb
style(panel): Clean code set fixed values for T-DECK
jgauchia Sep 25, 2024
40005a8
style(sd): Clean code
jgauchia Sep 25, 2024
764487d
fix(lvgl): Fix button bar icon padding
jgauchia Sep 25, 2024
f93101d
fix(lvgl): Fix T-DECK messagebox font size
jgauchia Sep 25, 2024
af2c299
fixed issue when you try to send a new screenshot over ip
hpsaturn Sep 25, 2024
4ed11e7
Merge branch 'av/screenshot_cmd_fix' into devel_lilygo_tdeck
hpsaturn Sep 25, 2024
e109fec
refactored SD init for all boards
hpsaturn Sep 25, 2024
cb54976
added new command for power tests
hpsaturn Sep 26, 2024
7041c22
improved deepsleep methods and added powerof of other devices
hpsaturn Sep 26, 2024
3f2290a
provisional target to CLI version with power issue fixed
hpsaturn Sep 26, 2024
90adca9
renamed method to righ mean
hpsaturn Sep 26, 2024
5edbc75
fixed telnet validation for shell logo and added lightsleep method
hpsaturn Sep 26, 2024
d32da18
feat(lvgl): Change Waypoint option toolbar
jgauchia Sep 26, 2024
f74c394
fix(maps): Fix T-Deck not full-screen map height
jgauchia Sep 26, 2024
75ed7dc
Merge branch 'devel_lilygo_tdeck' of https://github.com/jgauchia/IceN…
jgauchia Sep 26, 2024
c1556cb
Merge pull request #209 from hpsaturn/poweroff_improv
jgauchia Sep 26, 2024
adba024
fix(hal): Fix BOARD_BOOT_PIN for other boards
jgauchia Sep 26, 2024
08d3431
feat(compass): Use GPS heading if no compass present
jgauchia Sep 26, 2024
9d5c173
fix(lvgl): Use LV_OS_FREERTOS
jgauchia Sep 26, 2024
bd93bad
fix: Fix ELECROW compass
jgauchia Sep 26, 2024
1333efa
added button asyn library for power suspend operations
hpsaturn Sep 28, 2024
9078329
added initial support for device suspend and device off with GPS on
hpsaturn Sep 28, 2024
75cf4e6
Merge branch 'devel_lilygo_tdeck' of github.com:jgauchia/IceNav-v3 in…
hpsaturn Sep 28, 2024
75ba66a
Merge pull request #210 from hpsaturn/power_off_support
jgauchia Sep 28, 2024
686465b
fix(compass): Fix GPS heading on compass widget
jgauchia Sep 28, 2024
f7297e0
refactor(nav): Navigation Screen in separated files
jgauchia Sep 28, 2024
0a99754
style(nav): Clean code
jgauchia Sep 28, 2024
a46a924
feat(nav): Custom navigation screen for T-DECK
jgauchia Sep 28, 2024
28602a6
fix(nav): Fix T-DECK distance label
jgauchia Sep 28, 2024
bd1bb6a
added WCLI library with power issue fixed
hpsaturn Sep 29, 2024
5c880d5
fix(maps): Fix Map Issue with IceNav board
jgauchia Oct 4, 2024
d96d427
perf(maps): Preload maps before splash screen
jgauchia Oct 4, 2024
e767db7
two new CLI commands for set preferences. kset and klist
hpsaturn Oct 4, 2024
08190d5
now lat/lon is checked from three sources, gps, settings and env
hpsaturn Oct 4, 2024
33ff434
changed to verbose the lat/lon logs
hpsaturn Oct 4, 2024
63ac56d
fix(build): Remove T-DECK buildflag
jgauchia Oct 4, 2024
c7f9190
Merge pull request #214 from hpsaturn/fix_issue_212_cli_defaults
jgauchia Oct 4, 2024
e78626f
fix(lvgl): Set waypoint name focused for T-DECK
jgauchia Oct 4, 2024
b9b10da
fix(maps): Set default zoom level to 15
jgauchia Oct 4, 2024
26c3236
fix(settings): Set default zoom levels for vector/render map
jgauchia Oct 5, 2024
3e02793
fixed load map issue when you skip the satellites. (zoom issue)
hpsaturn Oct 5, 2024
b5e0b04
chore(logs): Delete extra linefeed
jgauchia Oct 5, 2024
01471e7
fix(lvgl): Set waypoint name focused for T-DECK
jgauchia Oct 5, 2024
46c3f74
feat(power): Add POWER_SAVE build flag
jgauchia Oct 5, 2024
1961321
feat(lvgl): Add GPIO0 reading in LVGL
jgauchia Oct 5, 2024
e387ed6
improved the klist command with the paramete 'all'
hpsaturn Oct 6, 2024
0a699a4
feat(lvgl): Add GPIO0 short and long press events
jgauchia Oct 6, 2024
e3c84ad
feat(lvgl): Add power functions to LVGL events
jgauchia Oct 6, 2024
d77f7c9
added support to NMEA GPS output via CLI
hpsaturn Oct 6, 2024
b60ef4e
Merge pull request #218 from hpsaturn/cli_gps_output_command
jgauchia Oct 6, 2024
401e299
fix(power): Add suspend counter
jgauchia Oct 6, 2024
d2f29d1
fix(power): Fix LVGL events for sleep mode
jgauchia Oct 6, 2024
e43dd90
fix(board): Fix ICENAV BOARD json file
jgauchia Oct 6, 2024
8d5ea58
fix(board): Fix Elecrow board json file
jgauchia Oct 6, 2024
55e7e02
chore(ini): Clean build flags
jgauchia Oct 6, 2024
eb403c7
fix(lgfx): Add BackLight PWM for all panels
jgauchia Oct 6, 2024
ed4b687
refactor(tft): Change tft on&off functions
jgauchia Oct 6, 2024
50798f7
refactor(power): Modify sleep functions (TFT)
jgauchia Oct 6, 2024
673b870
improve NMEA output commmands and its documentation
hpsaturn Oct 7, 2024
73a8dec
fixed issue with widgets positions after wipe or first use case
hpsaturn Oct 7, 2024
84cdc78
refactor(lvgl): Add common LVGL config file
jgauchia Oct 8, 2024
94246ec
refactor(lvgl): Modify prebuild.py script
jgauchia Oct 8, 2024
b8ef047
refactor(lvgl): Add lv_conf.h path in common build flag
jgauchia Oct 8, 2024
f848ed9
refactor(lvgl): Delete old lvgl config files
jgauchia Oct 8, 2024
6f68ed5
Merge pull request #220 from jgauchia/219-unify-lvgl-configuration
jgauchia Oct 8, 2024
e514509
fix: Fix devel conflicts
jgauchia Oct 8, 2024
ae68399
feat(batt): Add custom CLI command to set batt max and min voltage
jgauchia Oct 8, 2024
a51693b
feat(power): Add sleep&shutdown message
jgauchia Oct 10, 2024
dfd1fdc
Merge pull request #217 from jgauchia/216-add-gpio0-button-to-lvgl
jgauchia Oct 10, 2024
eba30b3
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
d8b23dc
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
67bd24b
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
95132a6
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
1c81658
initial version of Brightness widget without persistence
hpsaturn Oct 10, 2024
c69b9b3
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
87ac95d
fix(lvgl): Fix code
jgauchia Oct 10, 2024
eef42b3
fix(tft): Fix brightness , LovyanGfx common
jgauchia Oct 10, 2024
d6ea601
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
ab323fd
Merge pull request #1 from jgauchia/brightness_widget
hpsaturn Oct 10, 2024
7ae93ec
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 10, 2024
ca2e0be
Merge pull request #224 from hpsaturn/brightness_widget
jgauchia Oct 10, 2024
ffd84b4
hotfix for scshot exception when you are without WiFi
hpsaturn Oct 11, 2024
ca184c1
fix(sd): Fix SD init for IceNav Board
jgauchia Oct 12, 2024
6b37c90
Merge branch 'devel_lilygo_tdeck' of https://github.com/jgauchia/IceN…
jgauchia Oct 12, 2024
fc4d119
fix(lvgl): Fix Navigation Screen for T-DECK
jgauchia Oct 12, 2024
822497b
Merge pull request #223 from jgauchia/222-review-navigation-screen-fo…
jgauchia Oct 12, 2024
ea73676
feat(satinfo): Add Satellite info screen files
jgauchia Oct 12, 2024
d07ff58
feat(satinfo): Add Satellite info screen files
jgauchia Oct 12, 2024
32c0f43
style: Change date
jgauchia Oct 12, 2024
5eab454
refactor(satinfo): Satellite info into separated file
jgauchia Oct 12, 2024
de60aff
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
4f4d917
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
1891d4b
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
57030e3
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
da089df
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
9624d93
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
9ccdcb5
fix(lvgl): Fix Satellite info screen for T-DECK
jgauchia Oct 12, 2024
4b4fd56
Merge pull request #226 from jgauchia/225-review-satellite-info-scree…
jgauchia Oct 14, 2024
4b7ba88
Merge pull request #208 from jgauchia/devel_lilygo_tdeck
jgauchia Oct 14, 2024
13d67b3
Update README.md
jgauchia Oct 14, 2024
746688f
Update README.md
jgauchia Oct 14, 2024
35229a0
Merge branch 'master' of github.com:jgauchia/IceNav-v3 into devel
hpsaturn Oct 15, 2024
3b68b7c
BREAKING CHANGE: Change GPS library to NeoGPS
jgauchia Oct 22, 2024
d34c8e6
fix(power): Stop screen refresh before enter in sleep mode or shutdow…
jgauchia Oct 22, 2024
63371d0
style: Clean code
jgauchia Oct 22, 2024
97c0f8d
Merge pull request #230 from jgauchia/devel_neogps
jgauchia Oct 23, 2024
76e70af
chore: Update revision
jgauchia Oct 23, 2024
92d98c2
feat(satinfo): Recolor SNR bars for GSV SNR sentence
jgauchia Oct 23, 2024
5d91015
feat(satinfo): Add Satellite ID to bar chart
jgauchia Oct 23, 2024
e2a9522
build(cli): Update CLI library version
jgauchia Oct 23, 2024
6f3b1cd
fix(satinfo): Fix bar size if SNR = 0
jgauchia Oct 23, 2024
17b8d9b
feat(satinfo): New Bar color if satellite isn't tracked (no active)
jgauchia Oct 23, 2024
6d3f062
feat(satinfo): Add Bar chart legend
jgauchia Oct 24, 2024
0682dd9
feat(satinfo): Change PDOP HDOP VDOP and ALT labels
jgauchia Oct 24, 2024
b132bd2
fix(satinfo): Fix TDECK PDOP HDOP VDOP and ALT position
jgauchia Oct 24, 2024
44ad496
fix(satinfo): Adjust T-DECK screen
jgauchia Oct 24, 2024
d5e2c46
removed deprecated method setBrightness and some minor refactors
hpsaturn Oct 26, 2024
d879d60
now the brightness persist in flash. Improved fade animation
hpsaturn Oct 26, 2024
83fa866
fixed saveBrightness location
hpsaturn Oct 26, 2024
9fc56df
feat(hardware): Add new IceNav Board support
jgauchia Oct 26, 2024
ee1edc0
fix: Fix splash screen fadeout
jgauchia Oct 26, 2024
1af3a24
fix: Fix splash screen
jgauchia Oct 26, 2024
fd7d8c9
Merge pull request #235 from hpsaturn/devel
jgauchia Oct 26, 2024
f678556
Merge pull request #237 from jgauchia/pull_235
jgauchia Oct 26, 2024
3df0d5d
fix(satinfo): Fix T-DECK satellite info screen size
jgauchia Oct 26, 2024
9c3d983
fix(satinfo): Fix Satellite Info screen size for T-DECK
jgauchia Oct 26, 2024
a5418f4
fix(satinfo): Fix Satellite Info screen size for T-DECK
jgauchia Oct 26, 2024
5d39aae
fix(satinfo): Fix Satellite Info screen size for T-DECK
jgauchia Oct 26, 2024
08f0319
fix(satinfo): Clear vertical scroll for T-DECK
jgauchia Oct 26, 2024
e095867
fix(satinfo): Clear vertical scroll for T-DECK
jgauchia Oct 26, 2024
25e01e4
fix(satinfo): Clear vertical scroll for T-DECK
jgauchia Oct 26, 2024
a972890
fix(satinfo): Clear vertical scroll for T-DECK
jgauchia Oct 26, 2024
3dbf135
fix(satinfo): Clear vertical scroll for T-DECK
jgauchia Oct 26, 2024
ccb1273
fix(satinfo): Clear vertical scroll for T-DECK
jgauchia Oct 26, 2024
0e1f268
Merge pull request #231 from jgauchia/devel_satinfo
jgauchia Oct 26, 2024
ff77b53
build(pio): Update Revision
jgauchia Oct 26, 2024
46f7707
feat(satinfo): Create canvas for satellite constellation map
jgauchia Oct 27, 2024
3405551
feat(satinfo): Add Satellite constellation popup for T-DECK
jgauchia Oct 27, 2024
2d26d1b
feat(satinfo): Add satellite in constellation map
jgauchia Oct 28, 2024
27b9c6e
chore(images): Update satellite info screenshot
jgauchia Oct 28, 2024
33943f6
fix(satinfo): Fix event for non T-DECK board
jgauchia Oct 28, 2024
e78746a
Merge pull request #238 from jgauchia/devel_constel
jgauchia Oct 28, 2024
27c1343
chore: Delete test files
jgauchia Oct 28, 2024
37a9c2d
build(pio): Update revision
jgauchia Oct 28, 2024
bd5e07b
fix(gps): Increase RX buffer size
jgauchia Oct 29, 2024
b79074b
fix(gps): Fix RX buffer size
jgauchia Oct 29, 2024
1780e25
fix(gps): Remove 38400 baud option for GPS baudrate
jgauchia Oct 29, 2024
2ad9e2f
fix(gps): Fix Last NMEA sentence
jgauchia Oct 29, 2024
464413e
fix(gps): Review gps library
jgauchia Nov 1, 2024
2e839d9
fix(settings): Rename GPS RX/TX user settings key
jgauchia Nov 1, 2024
789f9ba
fix(settings): Rename default zoom user settings name
jgauchia Nov 1, 2024
7b65e4d
chore: Update date in file
jgauchia Nov 1, 2024
30d6a9e
fix(settings): Change brightness slider size
jgauchia Nov 1, 2024
fd43415
Merge pull request #240 from jgauchia/devel_bright_slider
jgauchia Nov 1, 2024
88e5779
feat(settings): Add custom settings for temperature offset (+/-)
jgauchia Nov 1, 2024
c5d2368
feat(settings): Retrieve custom temperature offset user settings
jgauchia Nov 1, 2024
dfef12c
Update README.md
jgauchia Nov 1, 2024
7c4fbb0
chore(settings): Clear logs
jgauchia Nov 1, 2024
b907dfa
Merge pull request #241 from jgauchia/devel_temp_offset
jgauchia Nov 1, 2024
7b5a40b
docs(maps): Change vector map SD folder
jgauchia Nov 2, 2024
77747a3
Update README.md
jgauchia Nov 2, 2024
ab8d0e3
fix(icenav): Fix IceNav board definition
jgauchia Nov 5, 2024
34d96dd
fix(icenav): Fix IceNav board GPS gpio
jgauchia Nov 5, 2024
f2d0e54
fix(icenav): Fix compass orientation for IceNav board
jgauchia Nov 6, 2024
1963282
refactor(batt): Add ADC and Battery pin buildflag
jgauchia Nov 8, 2024
072718a
docs: Update README.md
jgauchia Nov 8, 2024
51c2d8b
docs: Update README.md
jgauchia Nov 8, 2024
62c0d16
Merge pull request #242 from jgauchia/devel_icenav_board
jgauchia Nov 8, 2024
0023162
docs: Update README.md
jgauchia Nov 8, 2024
013becf
Merge branch 'devel' into devel_serial
jgauchia Nov 8, 2024
0520c5b
Merge pull request #239 from jgauchia/devel_serial
jgauchia Nov 8, 2024
8ede38c
fix(serial): Fix serial buffer
jgauchia Nov 8, 2024
5fbca09
Merge pull request #243 from jgauchia/devel_serial
jgauchia Nov 8, 2024
c159add
docs: Update README.md
jgauchia Nov 8, 2024
359fd7a
build(ini): Update revision
jgauchia Nov 8, 2024
b15b6de
refactor(tft): New IceNav panel definition
jgauchia Nov 8, 2024
53df64a
refactor(tft): New IceNab board panel definition
jgauchia Nov 8, 2024
316c8e5
perf(icenav): Increase tft freq. write
jgauchia Nov 8, 2024
8952f0e
fix(tft): Fix panel file name
jgauchia Nov 9, 2024
85d434c
Merge pull request #244 from jgauchia/devel_icenav_panel
jgauchia Nov 9, 2024
ff2f01e
fix(maps): Fix preload default map
jgauchia Nov 9, 2024
9073b38
fix(wpt): Create Waypoint folder if doesn't exists
jgauchia Nov 9, 2024
af881d3
fix(lvgl): Fix calendar start day
jgauchia Nov 9, 2024
323cdd6
build(ini): Update Revision
jgauchia Nov 9, 2024
40f56c9
feat(cli): Save screenshot in PNG format
jgauchia Nov 9, 2024
65a618e
docs: Update README.md
jgauchia Nov 9, 2024
9126058
fix(cli): Fix save screenshot for SPI shared bus
jgauchia Nov 10, 2024
d52982b
fix(cli): Fix screenshot log
jgauchia Nov 10, 2024
704ef45
fix(webserver): Fix List files refresh
jgauchia Nov 10, 2024
a8c2a81
fix(webserver): Fix upload large files
jgauchia Nov 10, 2024
97f0a5d
fix(cli): Fix T-DECK screenshot colors
jgauchia Nov 10, 2024
923a1be
fix(tdeck): Fix TDECK screenshot
jgauchia Nov 10, 2024
4c4b03c
Merge pull request #247 from jgauchia/devel_png_scshot
jgauchia Nov 10, 2024
b3871d6
Merge pull request #249 from jgauchia/devel_webserver
jgauchia Nov 10, 2024
b0d3ab7
fix(lvgl): Fix LVGL flush callback
jgauchia Nov 10, 2024
c35ff2f
test(sd): Test SD without SHARED_SPI
jgauchia Nov 10, 2024
453145a
test(sd): Fix TDECK SPI init
jgauchia Nov 10, 2024
4840671
test(sd): Test SD without SHARED_SPI
jgauchia Nov 10, 2024
c426bb4
refactor(sd): Unify SD Board init
jgauchia Nov 10, 2024
68ae53f
build: Merge devel
jgauchia Nov 10, 2024
f96295e
docs: Update README.md
jgauchia Nov 10, 2024
d0e236b
refactor(i2c): Unify I2C init and clean code
jgauchia Nov 10, 2024
8a8e0e9
refactor(lvgl): Clean code
jgauchia Nov 10, 2024
82b4f9f
refactor(maps): Clean code
jgauchia Nov 10, 2024
de0920a
refactor(tft): Clean code
jgauchia Nov 10, 2024
d14f1dd
build(ini): Clear SHARED_SPI buildflag
jgauchia Nov 10, 2024
0bec798
test(sd): Delete acquire and release SD SPI
jgauchia Nov 11, 2024
c512c70
test(sd): Delete acquire and release SD SPI
jgauchia Nov 11, 2024
d78d5d9
fix(lvgl): Fix search satellite screen timers and wait
jgauchia Nov 11, 2024
82db48c
refactor: Clean code
jgauchia Nov 11, 2024
76e1018
build(ini): Update Revision
jgauchia Nov 11, 2024
7428999
Merge pull request #250 from jgauchia/devel_shared_spi
jgauchia Nov 11, 2024
7d397c1
fix(cli): fix num of defined commands for CLI
jgauchia Nov 11, 2024
ba62e42
fix(lvgl): Fix light & deep sleep screen width
jgauchia Nov 11, 2024
6e5d471
chore(tools): Delete convert raw python script
jgauchia Nov 11, 2024
3db0b40
style(lvgl): Add left symbol at top of waypoint list (back)
jgauchia Nov 11, 2024
446fbbf
Update README.md
jgauchia Nov 12, 2024
e8c50ce
Update README.md
jgauchia Nov 12, 2024
115f949
Update README.md
jgauchia Nov 12, 2024
89d514c
perf(sd): Increase SD freq for IceNav board
jgauchia Nov 12, 2024
19d294d
Merge pull request #252 from jgauchia/devel_perfomance
jgauchia Nov 12, 2024
0cc095c
perf(sd): Increase SD freq for TDECK board
jgauchia Nov 12, 2024
1e38fb4
Merge pull request #253 from jgauchia/devel_perfomance
jgauchia Nov 12, 2024
9f4afd6
refactor(sd): Unify SD init for all boards
jgauchia Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
export ICENAV3_LON=13.404
export ICENAV3_LAT=52.520
pio run
- name: Testing ESP32S3 MakerFabs Board
- name: Testing ESP32S3 T-Deck Board
run: |
export ICENAV3_LON=13.404
export ICENAV3_LAT=52.520
pio run -e MAKERF_ESP32S3
pio run -e TDECK_ESP32S3

5 changes: 3 additions & 2 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ jobs:
export ICENAV3_LON=13.404
export ICENAV3_LAT=52.520
pio run
- name: Testing ESP32S3 MakerFabs Board
- name: Testing ESP32S3 T-Deck Board
run: |
export ICENAV3_LON=13.404
export ICENAV3_LAT=52.520
pio run -e MAKERF_ESP32S3
pio run -e TDECK_ESP32S3


6 changes: 6 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
export ICENAV3_LON=13.404
export ICENAV3_LAT=52.520
pio run -e MAKERF_ESP32S3
- name: Testing ESP32S3 T-Deck Board
run: |
export ICENAV3_LON=13.404
export ICENAV3_LAT=52.520
pio run -e TDECK_ESP32S3




File renamed without changes.
175 changes: 128 additions & 47 deletions README.md

Large diffs are not rendered by default.

Empty file.
40 changes: 40 additions & 0 deletions SD Card File Structure/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## SD Renderized Map Tile File structure

Using [Maperitive](http://maperitive.net/) select your zone and generate your tiles. For that enter to `MAP-> Set Geometry bounds` draw or expand the square of your zone and run the command `generate-tiles minzoom=6 maxzoom=17`, It could takes long time, maybe 1 hour or more depending your area.

![Maperitive zone selection](/images/maperitive_zone_selection.jpg)

After that, copy the contents of directory `Tiles` into your SD in a directory called `MAP`.

On SD Card map tiles (256x256 PNG Format) should be stored, in these folders structure:

[ MAP ]
|________ [ zoom folder (number) ]
|__________________ [ tile X folder (number) ]
|_______________________ tile Y file.png

## SD Vectorized Map File structure

Using [OSM_Extract](https://github.com/aresta/OSM_Extract) you can generate binary map files to later create vector maps. Once generated, these files should be saved in the `mymap` folder on the SD card.

The PBF files can be downloaded from the [geofabrik](https://download.geofabrik.de/) website.

The PBF files should be saved in the `pbf` directory. Once saved, you should select the region or boundaries for which the GeoJSON files will be generated.

To obtain the boundaries, please check the [geojson.io](http://geojson.io) website.

For generate GeoJSON files run inside `maps` directory:

```bash
ogr2ogr -t_srs EPSG:3857 -spat min_lon min_lat max_lon max_lat map_lines.geojson /pbf/downloaded.pbf lines

ogr2ogr -t_srs EPSG:3857 -spat min_lon min_lat max_lon max_lat map_polygons.geojson /pbf/downloaded.pbf multipolygons
```

For generate binary map files run inside `maps` directory.
```bash
/scripts/./extract_features.py min_lon min_lat max_lon max_lat map
```
Once the process is completed, the maps will be inside the `maps/mymap` directory. Copy all folders to the SD card except the `test_imgs` directory.

Please follow the instructions provided by [OSM_Extract](https://github.com/aresta/OSM_Extract) for any further questions.
Empty file.
7 changes: 7 additions & 0 deletions SD Card File Structure/WPT/waypoint.gpx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="IceNav" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<wpt lat="48.890280"
lon="2.306391">
<name>EXAMPLE WPT</name>
</wpt>
</gpx>
38 changes: 38 additions & 0 deletions boards/T-Deck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"build": {
"arduino": {
"ldscript": "esp32s3_out.ld",
"partitions": "default_16MB.csv",
"memory_type": "qio_opi"
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [["0x303A", "0x1001"]],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": ["wifi"],
"debug": {
"default_tool": "esp-builtin",
"onboard_tools": ["esp-builtin"],
"openocd_target": "esp32s3.cfg"
},
"frameworks": ["arduino", "espidf"],
"name": "LilyGo T-Decl(16M Flash 8M OPI PSRAM )",
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"require_upload_port": true,
"speed": 921600
},
"url": "https://www.lilygo.cc",
"vendor": "LilyGo"
}
4 changes: 3 additions & 1 deletion boards/elecrow-esp32-s3-n16r8v-terminal.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_MODE=1"
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
9 changes: 6 additions & 3 deletions boards/icenav-esp32-s3.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DILI9488_FT5x06_SPI",
"-DTFT_BL=45",
"-DSPI_SHARED",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1",
"-DPOWER_SAVE",
"-DADC2",
"-DBATT_PIN=ADC2_CHANNEL_6",
"-DTFT_BL=46",
"-DAT6558D_GPS",
"-DQMC5883",
"-DBME280"
Expand Down
Binary file added data/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/exit.bin
Binary file not shown.
Binary file added data/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/reboot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/sd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/upload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/dev/rendermap.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/dev/satelliteinfo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/dev/wptopt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 81 additions & 24 deletions include/hal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Jordi Gauchía ([email protected])
* @brief Boards Pin definitions
* @version 0.1.8_Alpha
* @date 2024-09
* @date 2024-11
*/

#ifndef HAL_HPP
Expand All @@ -17,22 +17,39 @@
#define I2C_SDA_PIN 38
#define I2C_SCL_PIN 39

extern const uint8_t GPS_TX = 17;
extern const uint8_t GPS_RX = 18;
uint8_t GPS_TX = 43;
uint8_t GPS_RX = 44;

extern const uint8_t TFT_SPI_SCLK = 12;
extern const uint8_t TFT_SPI_MOSI = 11;
extern const uint8_t TFT_SPI_MISO = 13;
extern const uint8_t TFT_SPI_DC = 3;
extern const uint8_t TFT_SPI_CS = 10;
extern const uint8_t TFT_SPI_RST = 6;
extern const uint8_t BOARD_BOOT_PIN = 0;

extern const uint8_t SD_CS = 21;
extern const uint8_t SD_MISO = 13;
extern const uint8_t SD_MOSI = 11;
extern const uint8_t SD_CLK = 12;
extern const uint8_t SD_CS = 1;
extern const uint8_t SD_MISO = 41;
extern const uint8_t SD_MOSI = 2;
extern const uint8_t SD_CLK = 42;

extern const uint8_t TCH_I2C_PORT = 0;
extern const uint8_t TFT_WR = 18;
extern const uint8_t TFT_RD = 48;
extern const uint8_t TFT_RS = 45;
extern const uint8_t TFT_RST = -1;
extern const uint8_t TFT_CS = -1;
extern const uint8_t TFT_D0 = 47;
extern const uint8_t TFT_D1 = 21;
extern const uint8_t TFT_D2 = 14;
extern const uint8_t TFT_D3 = 13;
extern const uint8_t TFT_D4 = 12;
extern const uint8_t TFT_D5 = 11;
extern const uint8_t TFT_D6 = 10;
extern const uint8_t TFT_D7 = 9;
extern const uint8_t TFT_D8 = 3;
extern const uint8_t TFT_D9 = 8;
extern const uint8_t TFT_D10 = 16;
extern const uint8_t TFT_D11 = 15;
extern const uint8_t TFT_D12 = 7;
extern const uint8_t TFT_D13 = 6;
extern const uint8_t TFT_D14 = 5;
extern const uint8_t TFT_D15 = 4;

extern const uint8_t TCH_I2C_PORT = 0;
extern const uint8_t TCH_I2C_SDA = 38;
extern const uint8_t TCH_I2C_SCL = 39;
extern const uint8_t TCH_I2C_INT = 40;
Expand All @@ -50,12 +67,14 @@
#define I2C_SCL_PIN 39

// UART PORT
// extern const uint8_t GPS_TX = 44; // UART PIN Terminal Port
// extern const uint8_t GPS_RX = 43; // UART PIN Terminal Port
// uint8_t GPS_TX = 44; // UART PIN Terminal Port
// uint8_t GPS_RX = 43; // UART PIN Terminal Port

// Alternative to UART PORT
extern const uint8_t GPS_TX = 40; // Analog PIN Terminal Port
extern const uint8_t GPS_RX = 19; // Digital PIN Terminal Port
uint8_t GPS_TX = 40; // Analog PIN Terminal Port
uint8_t GPS_RX = 19; // Digital PIN Terminal Port

extern const uint8_t BOARD_BOOT_PIN = 0;

extern const uint8_t SD_CS = 1;
extern const uint8_t SD_MISO = 41;
Expand Down Expand Up @@ -90,6 +109,38 @@
extern const uint8_t TCH_I2C_INT = -1;
#endif

#ifdef TDECK_ESP32S3 // Check GPS UART GPIO
#define I2C_SDA_PIN 18
#define I2C_SCL_PIN 8

#define BOARD_POWERON 10
extern const uint8_t BOARD_BOOT_PIN = 0;

uint8_t GPS_TX = 43;
uint8_t GPS_RX = 44;

extern const uint8_t TFT_SPI_SCLK = 40;
extern const uint8_t TFT_SPI_MOSI = 41;
extern const uint8_t TFT_SPI_MISO = 38;
extern const uint8_t TFT_SPI_DC = 11;
extern const uint8_t TFT_SPI_CS = 12;
extern const uint8_t TFT_SPI_RST = -1;
extern const uint8_t TFT_SPI_BL = 42;

extern const uint8_t SD_CS = 39;
extern const uint8_t SD_MISO = 38;
extern const uint8_t SD_MOSI = 41;
extern const uint8_t SD_CLK = 40;

extern const uint8_t BOARD_TFT_CS = 12;
extern const uint8_t RADIO_CS_PIN = 9;

extern const uint8_t TCH_I2C_PORT = 0;
extern const uint8_t TCH_I2C_SDA = 18;
extern const uint8_t TCH_I2C_SCL = 8;
extern const uint8_t TCH_I2C_INT = 16;
#endif

/**
* @brief MAKERFABS ESP32S3 BOARD pin definition
*
Expand All @@ -101,8 +152,10 @@
#define I2C_SDA_PIN 38
#define I2C_SCL_PIN 39

extern const uint8_t GPS_TX = 17;
extern const uint8_t GPS_RX = 18;
uint8_t GPS_TX = 17;
uint8_t GPS_RX = 18;

extern const uint8_t BOARD_BOOT_PIN = 0;

extern const uint8_t SD_CS = 1;
extern const uint8_t SD_MISO = 41;
Expand Down Expand Up @@ -143,8 +196,10 @@
*/
#ifdef ESP32_N16R4

extern const uint8_t GPS_TX = 25;
extern const uint8_t GPS_RX = 26;
uint8_t GPS_TX = 25;
uint8_t GPS_RX = 26;

extern const uint8_t BOARD_BOOT_PIN = 0;

extern const uint8_t TFT_SPI_SCLK = 14;
extern const uint8_t TFT_SPI_MOSI = 13;
Expand Down Expand Up @@ -178,8 +233,10 @@
#define I2C_SDA_PIN 38
#define I2C_SCL_PIN 39

extern const uint8_t GPS_TX = 17;
extern const uint8_t GPS_RX = 18;
uint8_t GPS_TX = 17;
uint8_t GPS_RX = 18;

extern const uint8_t BOARD_BOOT_PIN = 0;

extern const uint8_t TFT_SPI_SCLK = 12;
extern const uint8_t TFT_SPI_MOSI = 11;
Expand Down
28 changes: 17 additions & 11 deletions lib/battery/battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Jordi Gauchía ([email protected])
* @brief Battery monitor definition and functions
* @version 0.1.8_Alpha
* @date 2024-09
* @date 2024-11
*/


Expand All @@ -15,9 +15,11 @@
*/
uint8_t battLevel = 0;
uint8_t battLevelOld = 0;
float batteryMax = 4.2; // maximum voltage of battery
float batteryMin = 3.6; // minimum voltage of battery before shutdown

/**
* @brief Configurate ADC Channel for battery reading
* @brief Configure ADC Channel for battery reading
*
*/
void initADC()
Expand All @@ -26,14 +28,15 @@ void initADC()
// 0dB attenuation (ADC_ATTEN_DB_0) gives full-scale voltage 1.1V
// 2.5dB attenuation (ADC_ATTEN_DB_2_5) gives full-scale voltage 1.5V
// 6dB attenuation (ADC_ATTEN_DB_6) gives full-scale voltage 2.2V
// 11dB attenuation (ADC_ATTEN_DB_11) gives full-scale voltage 3.9V
// 12dB attenuation (ADC_ATTEN_DB_12) gives full-scale voltage 3.9V

#ifndef ELECROW_ESP32
#ifdef ADC1
adc1_config_width(ADC_WIDTH_BIT_12);
adc1_config_channel_atten(ADC1_CHANNEL_6, ADC_ATTEN_DB_12);
adc1_config_channel_atten(BATT_PIN, ADC_ATTEN_DB_12);
#endif
#ifdef ELECROW_ESP32
adc2_config_channel_atten(ADC2_CHANNEL_6, ADC_ATTEN_DB_12);

#ifdef ADC2
adc2_config_channel_atten(BATT_PIN, ADC_ATTEN_DB_12);
#endif
}

Expand All @@ -49,15 +52,18 @@ float batteryRead()
float output = 0.0; // output value
for (int i = 0; i < 100; i++)
{
#ifndef ELECROW_ESP32
sum += (long)adc1_get_raw(ADC1_CHANNEL_6);

#ifdef ADC1
sum += (long)adc1_get_raw(BATT_PIN);
#endif
#ifdef ELECROW_ESP32

#ifdef ADC2
int readRaw;
esp_err_t r = adc2_get_raw(ADC2_CHANNEL_6, ADC_WIDTH_BIT_12, &readRaw);
esp_err_t r = adc2_get_raw(BATT_PIN, ADC_WIDTH_BIT_12, &readRaw);
if (r == ESP_OK)
sum += (long)readRaw;
#endif

delayMicroseconds(150);
}
voltage = sum / (float)100;
Expand Down
6 changes: 3 additions & 3 deletions lib/battery/battery.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Jordi Gauchía ([email protected])
* @brief Battery monitor definition and functions
* @version 0.1.8_Alpha
* @date 2024-09
* @date 2024-11
*/

#ifndef BATTERY_HPP
Expand All @@ -16,8 +16,8 @@
static esp_adc_cal_characteristics_t characteristics;
#define V_REF 3.9 // ADC reference voltage

static float batteryMax = 4.20; // 4.2; // maximum voltage of battery
static float batteryMin = 3.40; // 3.6; // minimum voltage of battery before shutdown
extern float batteryMax; // 4.2; // maximum voltage of battery
extern float batteryMin; // 3.6; // minimum voltage of battery before shutdown

extern uint8_t battLevel;
extern uint8_t battLevelOld;
Expand Down
Loading
Loading