1325 Commits

Author SHA1 Message Date
c307b64b0a Schon wieder irgendwas 2023-08-14 15:34:31 +02:00
101a2b03a8 More fixes again 2023-08-13 22:33:45 +02:00
7b4fd61a39 Again so many tft fixes 2023-08-13 20:37:50 +02:00
f32013f782 Even more more fixes 2023-08-13 20:26:51 +02:00
cca17b7ded More fixes 2023-08-13 20:15:53 +02:00
a9794b13bd Updated to newest idf 2023-08-13 20:13:05 +02:00
1a7e83de83 Merge pull request #400 from bobbycar-graz/update-mick-config
Update mick configs
2023-04-04 09:18:51 +02:00
69b030268f Update mick configs 2023-04-04 08:35:14 +02:00
b3b45653b5 Merge pull request #399 from bobbycar-graz/fix-open-quickaction
Skip empty configs on door open quickaction
2023-04-04 08:32:50 +02:00
199a8f1e4e Skip empty configs on door open quickaction 2023-04-04 07:52:09 +02:00
d6c76f3c3f Merge pull request #398 from bobbycar-graz/fix-build
Also build components with C++23
2023-04-04 07:51:00 +02:00
0909c055de Also build components with C++23 2023-04-04 06:27:23 +02:00
52b55b38cd Merge pull request #391 from bobbycar-graz/add-idf-ver
Added idf version to git menu
2022-12-24 16:08:40 +01:00
65d7a7e9ec Added idf version to git menu 2022-12-24 16:05:13 +01:00
13a6ce3cc2 Merge pull request #390 from bobbycar-graz/update-for-nimble-tests
Fixed ble
2022-12-24 16:02:52 +01:00
6bc85875ee Fixed ble 2022-12-24 15:55:35 +01:00
4688326323 Revert init change 2022-12-24 15:30:05 +01:00
1b7a523acd Made some modifications 2022-12-24 15:29:45 +01:00
c85e84e9a1 Updated submodules 2022-12-23 00:02:52 +01:00
9e6ee2c957 Merge pull request #389 from bobbycar-graz/accel-brake-lights 2022-12-18 20:32:29 +01:00
d29a74dbd4 Decreased limit 2022-12-18 19:33:37 +01:00
b984360956 Added acceleration and power cause for brake lights 2022-12-18 19:32:41 +01:00
fa819822f0 Removed unused file 2022-12-18 19:31:45 +01:00
52ff7acd02 Added brake light optimizations 2022-12-18 02:31:41 +01:00
b61dfcf53d Added acceleration detection for brake lights 2022-12-18 00:18:50 +01:00
f6b4966071 Merge pull request #388 from bobbycar-graz/optimizations 2022-12-17 23:25:26 +01:00
a6fb1b7396 Added more stats 2022-10-30 02:47:13 +01:00
fd40d8dbd8 Increase timings 2022-10-30 02:19:41 +02:00
8cf766356c Do not display so many can messages 2022-10-30 02:19:27 +02:00
da8b91403d Merge pull request #372 from bobbycar-graz/setup-screen-361 2022-10-26 19:19:17 +02:00
4b4044626b Poti screen 2022-10-26 19:03:55 +02:00
71906ba511 Changed potis 2022-10-26 18:11:12 +02:00
ef7e605eb7 Enable feedcode cloud 2022-10-26 18:11:05 +02:00
32389f2bf9 Fixed font 2022-10-26 17:49:51 +02:00
e647c4b372 Merge pull request #384 from bobbycar-graz/fix-tft-espi 2022-10-26 17:31:00 +02:00
3c0b0cdbb1 Fixed everything 2022-10-26 17:30:02 +02:00
43c2338dbd Added raw poti graphs 2022-10-21 21:18:31 +02:00
846a5d753a Updated librarys 2022-10-21 16:15:38 +02:00
f4110bb854 Minor modifications 2022-10-21 15:42:26 +02:00
226636a82a Remove old files 2022-10-13 22:01:25 +02:00
a93f34e0ba Refactor into multiple files 2022-10-13 22:00:16 +02:00
f2350c8746 Made some opimizations 2022-10-13 16:48:32 +02:00
1840030461 Fixed layout 2022-10-13 16:23:09 +02:00
62a4b88acb Added more setup scripts 2022-10-13 15:43:09 +02:00
bc9a0c396c Unfinished button calibration 2022-10-13 15:43:09 +02:00
2bc1625fab Old formatting 2022-10-13 15:43:08 +02:00
9db3da4b27 Dev commit 2022-10-13 15:43:08 +02:00
4e0fdd65c3 Remove commented out code 2022-10-13 15:43:08 +02:00
129cc64d24 Partitially done 2022-10-13 15:43:08 +02:00
f8b1454f9a Added git status 2022-10-13 15:43:08 +02:00
4f703c4d10 Fixed compiling commits that contains "quotes" 2022-10-13 15:43:08 +02:00
95e04ef543 Changed nvs reset and some other things 2022-10-13 15:43:08 +02:00
87751682b2 Made some modifications to qr functions 2022-10-13 15:43:08 +02:00
7a3a081af4 Modified reset, added option to debug menu 2022-10-13 15:43:08 +02:00
327932ac14 Merge pull request #381 from bobbycar-graz/clang-format 2022-10-08 16:32:46 +02:00
17eff6127f Added basic clang format file 2022-10-08 16:10:11 +02:00
2ec6ddc150 Merge pull request #380 from bobbycar-graz/fix-boardcomputerhardwaresettingsmenu 2022-10-06 15:56:15 +02:00
ba5d907e38 Switched to popScreen 2022-10-06 15:42:45 +02:00
3de6827bc5 Merge pull request #379 from bobbycar-graz/fix-display-rotation 2022-10-06 13:51:03 +02:00
846d90836d Fixed screen rotation 2022-10-06 13:41:12 +02:00
6e3324fe65 Merge pull request #378 from bobbycar-graz/enhancements 2022-10-06 11:37:02 +02:00
79e51f7511 Added more debug text 2022-10-06 11:23:55 +02:00
33f35f14b7 Merge pull request #359 from bobbycar-graz/new-ota-url 2022-10-06 11:23:33 +02:00
b43e4e76ac Changed to new ota url 2022-10-06 10:50:49 +02:00
e6ddc39177 Merge pull request #377 from bobbycar-graz/fix-319-udpcloud
Performance improvements
2022-10-06 10:43:49 +02:00
780fe01015 Performance improvements 2022-10-06 10:43:03 +02:00
5085b1daa6 Merge pull request #375 from bobbycar-graz/fix-319-udpcloud 2022-10-06 10:34:18 +02:00
4f174fe76f Fixed dumb typo 2022-10-06 08:50:11 +02:00
219b995695 Renamed ota_name into username and rewrite udp cloud 2022-10-05 23:12:19 +02:00
44100bcc0a Added emulate feedback option 2022-10-05 21:41:14 +02:00
e3f783977b Cleanup 2022-10-05 13:00:35 +02:00
9ea453f94b Merge pull request #371 from bobbycar-graz/fix-issue-360 2022-10-03 20:24:54 +02:00
4ff623195f Added locked for swap and copy 2022-10-03 20:08:50 +02:00
d8eb55277b Fixed compiling 2022-10-03 13:40:32 +02:00
47e49da69c Merge pull request #370 from bobbycar-graz/cmake-checks 2022-10-03 12:58:22 +02:00
91ebc22dc9 Check if variable is set 2022-10-03 12:47:09 +02:00
6202f5c913 Merge pull request #369 from bobbycar-graz/configure-cloud 2022-10-02 23:54:29 +02:00
16b7924c93 Added two settings accessors, fixed cloud 2022-10-02 23:41:27 +02:00
d71fd669e8 Minor fixes 2022-10-02 23:14:15 +02:00
5b0df729b3 Merge pull request #368 from bobbycar-graz/improvements 2022-10-02 23:07:10 +02:00
40e200a147 Implement nvs erase 2022-10-02 22:54:19 +02:00
4347377d61 Fixed hostname 2022-10-02 22:54:00 +02:00
c532907f20 Merge pull request #367 from bobbycar-graz/crash-handler 2022-10-01 17:50:44 +02:00
b27135ab90 Implemented recovery mode 2022-10-01 17:34:13 +02:00
a829b69217 Merge pull request #363 from bobbycar-graz/testdevice2
2nd Testdevice config
2022-10-01 15:32:54 +02:00
dd91c5826c Add display flip option 2022-10-01 15:21:55 +02:00
8c5e19f880 Fixed config, added more scripts 2022-10-01 15:05:16 +02:00
27e690b058 Testdevice 2 config 2022-10-01 14:38:09 +02:00
0eba8b3cce Merge pull request #365 from bobbycar-graz/feedc0de_private_branch 2022-10-01 13:33:23 +02:00
cac60a248d Stop logging can errors after 500 2022-10-01 02:48:24 +02:00
a062b9369b Alt eingessene C Trottel 2022-10-01 02:48:01 +02:00
8b6cdabfbc Updated config 2022-10-01 02:21:29 +02:00
eb353f56b9 Fixed more configs 2022-10-01 01:55:25 +02:00
ebc1bf88b6 Fixed config 2022-10-01 01:45:14 +02:00
e9d0915b69 Fixed feedc0de_new config 2022-10-01 01:40:57 +02:00
cd9a6ba32c Fixed configs 2022-10-01 01:32:30 +02:00
1b63870c4e fixed bgr color order 2022-10-01 00:19:49 +02:00
b13e45065f Fixed feedc0de_new button config 2022-09-30 22:46:46 +02:00
a97f84de33 Updated esp-idf again 2022-09-30 22:46:46 +02:00
cbad8dfa7b Fixed allfeatures 2022-09-30 22:46:46 +02:00
dd3608a09d Add setting to enable/disable remote control in default mode 2022-09-30 22:46:46 +02:00
6a2720c437 Apply ble remote control command also in default driving mode 2022-09-30 22:46:46 +02:00
e930a515ca Fix for tempomat, apply cruise speed before enabling 2022-09-30 22:46:46 +02:00
61fddd0724 Fixed button hold handling 2022-09-30 22:46:46 +02:00
a7242a4a7d feedc0de enable CAN erratas 2022-09-30 22:46:46 +02:00
e518388631 Fixed retarded log statements in can 2022-09-30 22:46:46 +02:00
785c887efe Fixed allfeatures 2022-09-30 22:46:46 +02:00
de17619208 Updated submodules 2022-09-30 22:46:46 +02:00
c71e02b004 Fixed feedc0de config 2022-09-30 22:46:46 +02:00
3246d5ec07 commit as is 2022-09-30 22:46:46 +02:00
c412ff6a01 Add asio_web 2022-09-30 22:46:46 +02:00
12975932e3 Add esp_boost 2022-09-30 22:46:45 +02:00
79be6d2fe6 Add feedc0de_new and dont build shitty configs anymore 2022-09-30 22:45:42 +02:00
8e8e694b57 New tft lib 2022-09-30 22:43:34 +02:00
d6b2b4b41c Merge pull request #358 from bobbycar-graz/move-configs 2022-09-18 12:04:49 +02:00
bff99bd6c5 Autogenerate available configs 2022-09-18 11:57:04 +02:00
98a1160c6f Moved all config files 2022-09-18 11:45:06 +02:00
7db25a5642 Merge pull request #356 from bobbycar-graz/ci 2022-09-18 11:25:52 +02:00
405ab92cf2 Removed unused configs 2022-09-18 11:13:26 +02:00
6f7b598bd7 Merge pull request #355 from bobbycar-graz/update-bobbycar-protocols 2022-09-18 11:11:48 +02:00
c129106ff4 Added iq and id 2022-09-18 11:03:28 +02:00
4885913c75 Updated bobbycar-protocol 2022-09-18 11:03:27 +02:00
f5d6535db9 Merge pull request #348 from bobbycar-graz/peter_screen_improvements
Speed screen improvements
2022-09-17 17:55:45 +02:00
f18a057411 Merge branch 'master' into peter_screen_improvements 2022-09-17 17:22:14 +02:00
72c1e959a1 Fixed ledstrip direction 2022-08-28 23:33:10 +02:00
3fe227a82b Merge pull request #255 from bobbycar-graz/websocket 2022-08-07 00:22:14 +02:00
e518c80e03 Removed display-related websocket stuff for merge 2022-08-07 00:09:40 +02:00
f8baa1c6ea Updated 2022-08-06 23:35:35 +02:00
67580cb7ec Fixed code 2022-08-06 23:35:35 +02:00
1abb83e6b1 More remote display 2022-08-06 23:35:35 +02:00
ad9b3c4e53 WIP binary protocol 2022-08-06 23:35:35 +02:00
e23418dbb0 Dev commit, probably not working 2022-08-06 23:35:35 +02:00
c39033399b Updated sdkconfig 2022-08-06 23:35:35 +02:00
0565c3042d Changed to fork 2022-08-06 23:35:35 +02:00
cb7d4180c4 Default value 2022-08-06 23:35:34 +02:00
bc6dd5a50c Fixed crash when pressing buttons 2022-08-06 23:35:34 +02:00
7a887a3323 Fixed compiling 2022-08-06 23:35:34 +02:00
73fd65b04f Fix for no buttons 2022-08-06 23:35:34 +02:00
0fab6e72e1 Added button control 2022-08-06 23:35:34 +02:00
0cf28d961a Kinda unified dpads 2022-08-06 23:35:34 +02:00
6c94b608fa Implemented enums for cloud 2022-08-06 23:35:34 +02:00
1366f3fedb Iterate Enum fixes 2022-08-06 23:35:34 +02:00
ca1b7173e7 Updated sdkconfig 2022-08-06 23:35:34 +02:00
1317cec337 Added temperature and current 2022-08-06 23:35:34 +02:00
e49603751f Implemented ota 2022-08-06 23:35:34 +02:00
c16a126a2f Fixed format string 2022-08-06 23:35:33 +02:00
91f2f621fe Added voltage field 2022-08-06 23:35:33 +02:00
7bece3c32f Added cloud destroy and battery percentage 2022-08-06 23:35:33 +02:00
2773f0614d Updated protocol 2022-08-06 23:35:33 +02:00
474b48ff3e Added testdevice 2022-08-06 23:35:33 +02:00
11b9564b07 Fixed can still having errors when both boards are deactivated 2022-08-06 23:35:33 +02:00
0c81c96e46 Changed to debug 2022-08-06 23:35:33 +02:00
01cf28e8f0 Implemented cloud nvs 2022-08-06 23:35:33 +02:00
3722d87aee Added type to string 2022-08-06 23:35:33 +02:00
12261a815f Implemented websocket cloud system 2022-08-06 23:35:33 +02:00
c0069006cd Fixed compiling by removing dot 2022-08-06 23:35:33 +02:00
8a8f800447 Formatting, also added new defaults 2022-08-06 23:35:32 +02:00
9068be4a2d Fixed compiling 2022-08-06 23:35:32 +02:00
cab4dd2ca1 New config lib fixes 2022-08-06 23:35:32 +02:00
83ea64a086 Added popup handler 2022-08-06 23:35:32 +02:00
5d4655b549 Made some changes so it will work without TFT_eSPI hack 2022-08-06 23:35:32 +02:00
6f6966d13e Some enhancements 2022-08-06 23:35:32 +02:00
72ce9fb3a5 Rendering 2022-08-06 23:35:32 +02:00
d805bcfb2c change Wh/km to W in speed info display 2022-07-17 16:31:29 +02:00
a462e97d5f Merge pull request #347 from bobbycar-graz/fixed-rc 2022-07-06 22:19:11 +02:00
cff49fa3a8 Fixed config 2022-07-06 21:57:13 +02:00
ee6fb1f99c Merge pull request #344 from bobbycar-graz/c++23
Upgrade to C++23
2022-06-25 22:35:06 +02:00
3c13473d0c Upgrade to C++23 2022-06-25 22:16:21 +02:00
38fb68ce2e Merge pull request #331 from bobbycar-graz/more-displays 2022-06-23 20:30:25 +02:00
55386b5fb3 Fixed formatting 2022-06-23 20:15:51 +02:00
0393ac750b fix speed info display 2022-06-23 20:15:51 +02:00
647365c5fc improve steedinfodisplay 2022-06-23 20:15:51 +02:00
756c8bde94 Hopefully fixed compile-errors 2022-06-23 20:15:51 +02:00
56d0cb2ab0 Fixed metersdisplay, implemented speed display 2022-06-23 20:15:51 +02:00
d829c0d5cb Fixed spelling 2022-06-23 20:15:51 +02:00
ff104923d7 Updated gui lib 2022-06-23 20:15:51 +02:00
a5ee6bb557 Added battery status display 2022-06-23 20:15:50 +02:00
b9961e2e2f Added debug menu for display coordinates 2022-06-23 20:15:50 +02:00
65bc7d2b38 Merge pull request #342 from bobbycar-graz/add-ble-fence 2022-06-23 20:12:49 +02:00
08e2f6e4d3 Fixed crash 2022-06-23 19:58:35 +02:00
0843e4881b Fixes 2022-06-23 19:02:31 +02:00
cf278e4d18 Add BLE fence 2022-06-23 19:02:31 +02:00
3e70a1fc74 Pull fixCommonParams and sendCommand out of driving modes 2022-06-23 19:02:31 +02:00
5971061bc7 Merge pull request #343 from bobbycar-graz/aveexy 2022-06-23 18:41:42 +02:00
eef937edea Fixed button calibrate display 2022-06-23 18:25:46 +02:00
401c870287 Added better default values 2022-06-23 18:25:46 +02:00
66a469f4e3 Added OTA Name define 2022-06-23 18:25:46 +02:00
ba45f28f17 Added aveexy config 2022-06-23 18:25:46 +02:00
735ad66dba Merge pull request #341 from bobbycar-graz/fixes 2022-06-20 09:50:36 +02:00
325d719aee Fixed bug that crashed the firmware 2022-06-20 09:31:12 +02:00
6144a05e25 Merge pull request #340 from bobbycar-graz/export-fixes 2022-06-13 22:45:26 +02:00
5db917786a Remove shell prefix 2022-06-13 22:34:21 +02:00
cf2f9a5939 Merge pull request #339 from bobbycar-graz/fix-compiling 2022-06-13 22:30:39 +02:00
54cdeee1c9 Fixed message 2022-06-13 22:11:11 +02:00
c6879016b1 Merge pull request #338 from bobbycar-graz/ned_gschissana_compiler
Ned gschissana compiler
2022-06-13 21:45:27 +02:00
eb94c1912d Ned gschissana compiler 2022-06-13 21:16:44 +02:00
f6bc1f5dbd Merge pull request #336 from bobbycar-graz/lockscreen-fix 2022-06-12 17:36:17 +01:00
a9905232c6 Fix push/pop 2022-06-12 18:19:03 +02:00
a1d51c3f2a Merge pull request #337 from bobbycar-graz/remove-doubles 2022-06-12 17:18:26 +01:00
b08572d503 Double 2022-06-12 18:10:31 +02:00
460f40ce47 Removed doubles 2022-06-12 17:51:31 +02:00
c42e44c40b Merge pull request #333 from bobbycar-graz/pride-animation 2022-06-12 14:58:04 +01:00
2a157f32ec Added animation, still needs optimizationgit st 2022-06-12 15:23:20 +02:00
aea4533893 Merge pull request #335 from bobbycar-graz/update-configs 2022-06-12 14:22:50 +01:00
039b97e5c1 Updated sdkconfigs 2022-06-12 15:16:08 +02:00
5288efe0ef Merge pull request #329 from bobbycar-graz/update_submodules 2022-05-30 18:43:08 +02:00
f29f8308d1 Fix for @0xFEEDC0DE64 2022-05-30 18:22:30 +02:00
ed149bf287 Updated sdkconfigs 2022-05-30 15:39:17 +02:00
4ac8896591 Updated script 2022-05-30 15:39:02 +02:00
89e5428af2 Updated to work with removal of Arduino.h 2022-05-30 15:34:27 +02:00
7bb09e4085 Still dont know what this is 2022-05-30 15:34:10 +02:00
4ccfc4340a Updated idf 2022-05-30 15:33:01 +02:00
6a189e2d06 Updated submodules 2022-05-30 15:32:53 +02:00
ab02a1c437 Merge pull request #328 from bobbycar-graz/remote-fixes 2022-05-27 16:47:13 +02:00
f4ac629823 Added remote control settings for changing model mode 2022-05-27 16:37:06 +02:00
5f4627ffb9 Moved into cpp 2022-05-27 16:36:51 +02:00
f7def7cf2c Merge pull request #278 from bobbycar-graz/qr 2022-05-26 19:41:04 +02:00
86cae5d564 Made some changes, +1 is a workarround 2022-05-26 19:27:25 +02:00
5bba53bfb9 Merge pull request #325 from bobbycar-graz/hidden-ssid 2022-05-25 03:23:57 +02:00
5eac6fd671 Added hidden ssid parameter 2022-05-25 03:11:21 +02:00
840c43ef0e Merge pull request #324 from bobbycar-graz/refactoring 2022-05-25 03:07:57 +02:00
3c10185e5e Added git menu 2022-05-25 03:02:06 +02:00
b6be6e6a83 Added git icon 2022-05-25 03:01:58 +02:00
30832a42f7 Removed unnecessarily complicated popup 2022-05-25 01:56:20 +02:00
c90ad518c5 Replaced 99.999% of switchScreen with Push/Pop 2022-05-25 01:40:56 +02:00
a5bfab2df7 Updated gui lib 2022-05-25 01:40:32 +02:00
349ffafedf Merge pull request #322 from bobbycar-graz/update-submodules 2022-05-21 14:05:45 +02:00
a3a7868988 Updated some submodules 2022-05-21 13:50:57 +02:00
8c0addd600 Merge pull request #321 from bobbycar-graz/fix-mick-mode
Fix mick mode
2022-05-20 16:53:22 +02:00
884ac87314 Fix mick mode 2022-05-19 18:35:21 +02:00
b7b86a5e8a Merge pull request #320 from bobbycar-graz/about-menu
Fixed a few menu items from about menu
2022-05-16 00:20:00 +02:00
9190cb6634 Fixed a few menu items from about menu 2022-05-16 00:11:04 +02:00
3818e50eab Merge pull request #311 from bobbycar-graz/update_submodules
BLE Works again!
2022-05-15 23:48:00 +02:00
5f27748675 Somehow the bobbycar was blue since like forever 2022-05-15 23:42:24 +02:00
367907d432 Added reboot key 2022-05-15 23:42:04 +02:00
873e3a027a Switch back to old version 2022-05-15 23:31:08 +02:00
230a9614d9 Updated rebased files to new submodules 2022-05-15 23:28:32 +02:00
304b7225df Added sdkconfig update helper 2022-05-15 23:27:30 +02:00
f9760528ca Updated sdkconfigs 2022-05-15 23:27:06 +02:00
d692f0261c Updated submodules again 2022-05-15 23:14:58 +02:00
4c7e438c18 Added fix for 'Mir egal ob die lokalzeit richtig is' 2022-05-15 23:14:58 +02:00
d277202fa3 Updated sdkconfigs 2022-05-15 23:14:58 +02:00
ed4444ad93 Wrong direction ledstrip 2022-05-15 23:14:58 +02:00
ee294392fc Fixes for normal bobbycars 2022-05-15 23:14:57 +02:00
91880608dc Fixed project for new submodules 2022-05-15 23:14:55 +02:00
84a1cd40e9 Added executable flag 2022-05-15 23:13:58 +02:00
71624b99b6 Added helper script 2022-05-15 23:13:58 +02:00
e9de923224 Merge pull request #315 from bobbycar-graz/esp-now-blinker 2022-05-15 23:12:24 +02:00
4b8848d464 Fixed blink (debugging via keyboard) 2022-05-15 23:12:12 +02:00
a58a8d1344 Modified blinker message 2022-05-15 23:02:12 +02:00
8c884c0b4e Added anhaenger id; everything should work now 2022-05-15 23:02:10 +02:00
950d46b109 Added bobby blinker for esp now 2022-05-15 22:58:50 +02:00
4540a2afbf Merge pull request #318 from bobbycar-graz/new-boardcomputer 2022-05-15 22:58:02 +02:00
1268887c37 Fixes 2022-05-15 22:50:39 +02:00
143a3d37e6 Added config to CI 2022-05-15 22:49:36 +02:00
e7ac8b47e3 Removed # 2022-05-15 22:42:24 +02:00
d85a67c05b Added debugging, fixed for loop 2022-05-12 14:31:12 +02:00
f5a7f9bcbe Forgot to add the config params to the list 2022-05-12 14:30:54 +02:00
1a1882d825 In the process of adding new boardcomputer 2022-05-12 02:37:01 +02:00
efb593c8aa Merge pull request #313 from bobbycar-graz/gernot_config
Eini mit der gernot config
2022-04-26 10:24:00 +02:00
d47bd7f095 Weniger abgefucked 2022-04-25 20:47:07 +02:00
5043788aef Add gernot config 2022-04-25 20:25:31 +02:00
4f6b98a27b Merge pull request #310 from bobbycar-graz/push_pop_menus 2022-04-23 17:03:38 +02:00
cf14e94647 Oida was geht ab 2022-04-23 16:50:12 +02:00
f188b42987 keine ahnung was 2022-04-23 16:09:35 +02:00
78d8255b62 Update submodules and implement lots of new push/pop screens 2022-04-23 16:09:35 +02:00
d40f5e71a4 More and more push pop implementations 2022-04-23 16:09:35 +02:00
e4b8622fed More push pops again 2022-04-23 16:09:35 +02:00
c0f911ce05 More push pop screens 2022-04-23 16:09:35 +02:00
c18403a30f Push/Pop screens 2022-04-23 16:09:35 +02:00
b9cb7835a1 Merge pull request #309 from bobbycar-graz/fix_gitmodules
Fix gitmodules
2022-04-23 16:03:36 +02:00
e8217bb038 Anoter fix for .gitmodules 2022-04-23 15:55:10 +02:00
0bef65c4d0 Fix .gitmodules for private 2022-04-23 15:55:10 +02:00
9f36056177 Merge pull request #308 from bobbycar-graz/fix-seatbot 2022-04-23 15:54:14 +02:00
1f6eb46771 Fixed seatbot 2022-04-23 15:45:38 +02:00
c0f8197262 Merge pull request #305 from bobbycar-graz/ledstrip-animations
Ledstrip animations
2022-04-22 23:16:59 +02:00
d5e863eb6b Cleanups 2022-04-22 22:54:29 +02:00
48f9e32cd4 New fancy SpeedOMeter 2022-04-19 09:12:40 +02:00
eb3e1862b2 Moved to unsigned (Bugfix) 2022-04-18 16:45:11 +02:00
936408a17a Fixed snake animation 2022-04-18 16:39:47 +02:00
5ad64d81d0 Cleanups 2022-04-18 15:04:05 +02:00
989da449b0 Snake Animation: Speedsync and animation multiplier 2022-04-18 14:18:17 +02:00
e20176f3ad New Animations: Snake, Efficiency 2022-04-18 13:29:35 +02:00
39500ef59c Merge pull request #304 from bobbycar-graz/sunrise-fix 2022-04-17 13:49:21 +02:00
673e304641 Fixed sunrise when no time is detected 2022-04-17 13:32:45 +02:00
b3e30780a1 Merge pull request #301 from bobbycar-graz/fixes 2022-04-08 18:28:00 +02:00
4765b97a70 Added some features 2022-04-08 18:19:24 +02:00
c7ca2846c7 Nobody knows what this is 2022-04-08 18:10:06 +02:00
15108bf277 Merge pull request #300 from bobbycar-graz/updated-toolchain 2022-04-08 17:59:59 +02:00
f2f479e1a6 Updated tools for new idf 2022-04-08 17:45:16 +02:00
7be54d20c8 Merge pull request #294 from bobbycar-graz/mick-mode-safety 2022-04-03 23:22:47 +02:00
3bd0a4b010 Add lots of safety checks to mick mode 2022-04-03 22:27:44 +02:00
255d09b06e Merge pull request #284 from bobbycar-graz/update_submodules 2022-04-03 22:26:49 +02:00
41a39be51f Fixes for new idf 2022-04-03 22:05:03 +02:00
562554f6d6 Fix compontent errors 2022-04-03 21:37:34 +02:00
8310fe64c9 Updated idf again 2022-04-03 21:09:56 +02:00
d77390e521 Updated idf 2022-04-03 21:09:56 +02:00
33731a5408 Updated submodules 2022-04-03 21:09:56 +02:00
c7a8f5e974 Forgot to add install for sonarcloud 2022-04-03 21:09:56 +02:00
3b4b117219 Added install script for idf 2022-04-03 21:09:56 +02:00
d1c0497dc2 Updated submodules once again 2022-04-03 21:09:56 +02:00
4617f5f26d Merge pull request #299 from bobbycar-graz/nightlight 2022-04-01 15:50:12 +02:00
886a5f32e5 Improved performance 2022-04-01 15:42:24 +02:00
f236d4bf03 Merge pull request #298 from bobbycar-graz/nightlight
Turn on lights when dark
2022-03-30 14:35:38 +02:00
1040ebe4a1 Added sunrise text, fixed timezone 2022-03-27 19:07:55 +02:00
c7573b90a6 Sonarcloud fixes 2022-03-26 20:19:06 +01:00
56996b50a1 Added automated light 2022-03-26 20:17:27 +01:00
48cfe3edbc Updated submodules 2022-03-26 19:11:02 +01:00
0b17b4ffd1 Added header to ledstrip 2022-03-26 19:09:47 +01:00
b75af48353 Added sunset library 2022-03-26 18:44:20 +01:00
7664e409d4 Added timepoint validator 2022-03-26 17:03:12 +01:00
3bbc916348 Merge pull request #293 from bobbycar-graz/mick-mode
Add mick mode
2022-03-25 10:24:07 +01:00
631eb0edad Add mick mode 2022-03-25 03:27:00 +01:00
5bdb0fabce Merge pull request #292 from bobbycar-graz/fix-mick-config 2022-03-24 23:16:39 +01:00
2e57c93252 Fix mick config 2022-03-24 23:05:44 +01:00
924d35ee6a Merge pull request #291 from bobbycar-graz/hupen-update 2022-03-24 23:04:48 +01:00
7db77cc25b Fixed typo 2022-03-24 22:59:31 +01:00
8a670cf608 Implemented buttonReleased() 2022-03-24 22:45:57 +01:00
ce9d9d840b fixed namespace 2022-03-24 22:13:39 +01:00
e7730d0a20 Implemented the hupe 2022-03-24 22:09:51 +01:00
8c69ab02d5 Merge pull request #290 from bobbycar-graz/can-fixes 2022-03-24 20:59:42 +01:00
37961639d1 Fixed can fix 2022-03-24 20:51:29 +01:00
5f23b8dec5 Merge pull request #288 from bobbycar-graz/can-fixes 2022-03-24 17:19:57 +01:00
64a7ac0018 Fixed nvs key 2022-03-23 20:07:04 +01:00
2c339b9273 Changed to debug log 2022-03-23 20:06:55 +01:00
19ea4ebec9 Added fix for canbus 2022-03-23 19:51:35 +01:00
7ad56840be Merge pull request #287 from bobbycar-graz/ci-fixes 2022-03-22 23:08:44 +01:00
c284ac9416 Wrong key 2022-03-22 22:39:54 +01:00
813abbefd6 Ignore failure of sonar scanner, we want green checks! 2022-03-22 22:37:12 +01:00
605cd12c8b Merge pull request #283 from bobbycar-graz/error-handling 2022-03-04 22:19:51 +01:00
81d467e69f Some battery graph fixes 2022-03-04 22:14:41 +01:00
bda9707638 Cleanup 2022-03-04 21:54:07 +01:00
af255ec098 Error handling for build selection 2022-03-04 21:49:33 +01:00
e4daf6cf3c Merge pull request #279 from bobbycar-graz/battery-graph 2022-03-04 21:38:31 +01:00
e40253c70f Fixed everything 2022-03-04 21:30:13 +01:00
a222d68264 Implemented float_map, but result is unexpected (see batterygraphdisplay.cpp:33) 2022-03-04 16:16:28 +01:00
177220df6b Added float map (might need debugging) 2022-03-04 16:16:28 +01:00
cb1065ccb4 More changes for battery graph 2022-03-04 16:16:28 +01:00
b48a40742e Added basic percentage display 2022-03-04 16:16:28 +01:00
7f6fa967c8 Added some more code 2022-03-04 16:16:28 +01:00
73d01e8516 Added functions to get the count of known battery points 2022-03-04 16:16:28 +01:00
9dc4ff7d4e Reworked battery curves 2022-03-04 16:16:26 +01:00
11a461bfdd Added basic battery graph display 2022-03-04 16:14:47 +01:00
689d7221a1 Merge pull request #282 from bobbycar-graz/confiscation-mode-port 2022-03-04 16:14:18 +01:00
c3cf4a74b0 Added calculation of megajoules 2022-03-02 15:09:44 +01:00
e7379fd3df Fixed linking error 2022-03-02 14:44:07 +01:00
080ba7dfe0 Add new confiscation mode screen 2022-03-02 14:40:07 +01:00
89f1a0b7a3 Merge pull request #280 from bobbycar-graz/gui-lib-update 2022-02-28 19:31:24 +01:00
4bc93579fb Updated gui lib 2022-02-28 19:17:36 +01:00
1564820f24 Merge pull request #277 from bobbycar-graz/qr 2022-02-26 15:11:58 +01:00
a496c3ab49 Added function for wifi security 2022-02-26 14:58:41 +01:00
f98147295b Merge pull request #276 from bobbycar-graz/ap-qr 2022-02-24 22:46:11 +01:00
db898c38f5 Fixed #272: No dependency on GreenPassMenu 2022-02-24 22:40:21 +01:00
d15b974a21 Added qr code for ap credentials 2022-02-24 22:39:57 +01:00
ba0c0acef2 Merge pull request #274 from bobbycar-graz/qrcodes 2022-02-24 21:34:42 +01:00
401a1db42c Fixed request, better error handling 2022-02-24 21:29:13 +01:00
2e8feaf2b5 Replaced url 2022-02-24 20:34:57 +01:00
db4c76ef5c Automatically calculate qr version 2022-02-22 22:04:59 +01:00
3908772345 Merge pull request #273 from bobbycar-graz/can-fixes
Added fix for bus going offline
2022-02-22 21:33:21 +01:00
f627c8d993 Added more canbus fixes (crashes) 2022-02-21 20:41:39 +01:00
e6c3357788 Added fix for bus going offline 2022-02-21 20:41:22 +01:00
9bb26252c5 Merge pull request #271 from bobbycar-graz/pwmomat-fixes 2022-02-18 22:29:50 +01:00
cc591cebc2 Fixed reverse driving and improved disabling of pwmomat 2022-02-18 22:12:23 +01:00
7222211c08 Merge pull request #270 from bobbycar-graz/better-flags-menu 2022-02-18 21:54:58 +01:00
ca9cf65d66 Removed unused code 2022-02-18 21:46:36 +01:00
6b0260b2c5 Formatting 2022-02-18 21:45:30 +01:00
4db8690677 Fixed query functions 2022-02-18 18:56:20 +01:00
168baeac83 Changed some files 2022-02-18 01:21:54 +01:00
2adccba813 Merge pull request #267 from bobbycar-graz/better-tempomat 2022-02-14 22:51:06 +01:00
97c9ecec4d Added pwmomat 2022-02-14 22:43:32 +01:00
e17e7ba5f8 Fix FEATURE_LEDSTRIP crashing when turning on (uninitialized memory) 2022-02-14 22:27:50 +01:00
89779c4648 Removed unused code 2022-02-14 21:27:26 +01:00
ade3117303 Merge pull request #265 from bobbycar-graz/last-reboot-reason 2022-02-13 20:40:56 +01:00
ddc1b64b20 Implemented last reboot reason 2022-02-13 20:32:57 +01:00
887e55aa3d Merge pull request #264 from bobbycar-graz/fixes 2022-02-13 20:28:08 +01:00
b5aba26f9b Fixed wrong index 2022-02-13 16:38:23 +01:00
0f03c0f88b Merge pull request #261 from bobbycar-graz/fixes 2022-02-13 14:26:48 +01:00
1febc69583 Software fixes 2022-02-13 14:17:55 +01:00
fecdbc2944 Merge pull request #245 from bobbycar-graz/nvs-feature-flags 2022-02-13 02:26:44 +01:00
06f8bd2ac1 Forgot to add to config 2022-02-13 02:16:35 +01:00
d29514a167 Moved FEATURE_ESPNOW into config-system 2022-02-13 02:12:29 +01:00
fb0bed29bf Rename 2022-02-13 01:43:43 +01:00
25a6479887 Fixed sonarcloud 2022-02-13 01:23:53 +01:00
31a0b64377 Pretty-print strings 2022-02-13 01:06:23 +01:00
2033448f65 Fixed webserver locks 2022-02-13 01:05:02 +01:00
dbaf7ddc71 Fixed CI 2022-02-12 23:20:42 +01:00
72b7dc3826 Fixed all configs 2022-02-12 22:51:12 +01:00
377564ff34 Revert "Moved FEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_KORREKT_ARBEITET into config-system"
This reverts commit ccc8eb0e3601e0769988426f3f59713ff6071a61.
2022-02-12 22:51:12 +01:00
a66d48de7d Todo 2022-02-12 22:51:12 +01:00
eb8cacec5a Moved FEATURE_WEBSERVER into config-system 2022-02-12 22:51:12 +01:00
5e242eb098 Moved FEATURE_WEBSERVER into config-system 2022-02-12 22:51:12 +01:00
d202a5a350 Default wifi settings 2022-02-12 22:51:12 +01:00
5908e2c4ca Moved FEATURE_OTA into config-system 2022-02-12 22:51:12 +01:00
c4451bf1cb Moved FEATURE_BLE into config-system 2022-02-12 22:51:12 +01:00
55c9e4ac93 Moved FEATURE_BLE into config-system 2022-02-12 22:51:11 +01:00
21dfe01f0c Removed FEATURE_WIRELESS_CONFIG 2022-02-12 22:51:11 +01:00
55db6f4090 Fixed featureflagsmenu 2022-02-12 22:51:11 +01:00
bebdf0046e Forgot to remove namespace 2022-02-12 22:51:11 +01:00
dbabd70ad4 Implemented featureflags-menu 2022-02-12 22:51:11 +01:00
4a47deccb8 Moved FEATURE_NTP into config-system 2022-02-12 22:51:11 +01:00
18ba362d61 Fixed compiling for absolutely no features 2022-02-12 22:51:11 +01:00
7140e1baf9 Forgot to remove #endif 2022-02-12 22:51:11 +01:00
359facce64 Much needed config refactor 2022-02-12 22:51:09 +01:00
22896d0fb9 Much needed config refactor 2022-02-12 22:45:38 +01:00
3cab7f2cf7 Moved FEATURE_DNS_NS into config-system 2022-02-12 22:45:34 +01:00
3b5538363f Forgot to remove those SWITCH_BLINK 2022-02-12 22:40:09 +01:00
8a0f642324 Forgot to remove those FEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_KORREKT_ARBEITET 2022-02-12 22:40:09 +01:00
3ccccc81a9 Removed -DOLD_NVS; Implemented dump-nvs for new config system 2022-02-12 22:40:09 +01:00
777134eaf1 Removed unused defines 2022-02-12 22:40:08 +01:00
1411a8847c Moved LEDS_PER_METER into config-system 2022-02-12 22:40:08 +01:00
43c0f6e374 Added ledsPerMeter; Forgot to add custom colors 2022-02-12 22:40:08 +01:00
65308be33d Fix some sonarcloud issues 2022-02-12 22:40:08 +01:00
9890c9fb24 Moved FEATURE_CLOUD and FEATURE_UDPCLOUD into config-system 2022-02-12 22:40:08 +01:00
ffd98375cc Satisfying sonarcloud 2022-02-12 22:40:08 +01:00
7a551c14d0 Completly moved ledstrip custom colors into NVS 2022-02-12 22:40:08 +01:00
6f1633d713 Removed ledstrip_custom_colors (replaced with configwrapper) 2022-02-12 22:40:08 +01:00
8e3397c6e5 Added crgb conversion 2022-02-12 22:40:08 +01:00
c44e683941 Moved FEATURE_GARAGE into config-system 2022-02-12 22:40:08 +01:00
fa4aeac27d Added featureflags menu 2022-02-12 22:40:07 +01:00
1a5df4e877 Removed ledstrip define 2022-02-12 22:40:07 +01:00
9640b3fcd3 Formatting 2022-02-12 22:40:07 +01:00
2117be359c Moved FEATURE_LEDSTRIP into config-system 2022-02-12 22:40:07 +01:00
0415d90d1b Implemented Bobbytasks 2022-02-12 22:40:07 +01:00
1fe69c9161 Multiline-comments 2022-02-12 22:40:07 +01:00
144ff531a4 Removed macros; added ledstrip flag 2022-02-12 22:40:07 +01:00
bf42fe05f4 Moved FEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_KORREKT_ARBEITET and FEATURE_GSCHISSENE_DIODE into config-system 2022-02-12 22:40:07 +01:00
fc2d7c511e Moved FEATURE_GSCHISSENE_DIODE into config-system 2022-02-12 22:40:07 +01:00
d40cc5d71d Removed unused flag 2022-02-12 22:40:07 +01:00
9125a968d5 Moved FEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_KORREKT_ARBEITET into config-system 2022-02-12 22:40:06 +01:00
cb11ca3c9e Mick config & fixes (#260) 2022-02-12 18:07:34 +00:00
0d366881b2 Merge pull request #254 from bobbycar-graz/code-cleanup 2022-02-08 17:02:24 +01:00
e52cf82218 Converted menus to a better menu for typesafe enums 2022-02-08 16:49:04 +01:00
a87599c7ea Fixed iterate problem, now the config is the problem 2022-02-08 11:03:29 +01:00
3322120464 Made some changes to the menus, still needs to be fixed 2022-02-08 11:03:29 +01:00
f10cb18dc4 WIP: Custom typesafe enum menu 2022-02-08 11:03:29 +01:00
79f7efeaf9 Fixed some software bugs (#258) 2022-02-08 09:59:47 +00:00
62f91ae0a6 Merge pull request #257 from bobbycar-graz/espchrono-fixes 2022-02-06 19:20:14 +01:00
c589295e30 microseconds fixed 2022-02-06 19:14:44 +01:00
6fe397a103 Merge pull request #256 from bobbycar-graz/battery_he4
Added HE4 cell type
2022-02-06 19:12:24 +01:00
598f74f8a3 Added HE4 cell type 2022-02-06 17:38:02 +01:00
9ac7f3fdc7 Merge pull request #253 from bobbycar-graz/workflow-manual-trigger 2022-02-01 10:23:10 +01:00
ab85b87d29 Added manual trigger 2022-02-01 10:17:11 +01:00
3b45dc8b16 Merge pull request #252 from bobbycar-graz/update_submodules
Update submodules
2022-01-29 23:07:19 +01:00
28ebb57cf3 Fix seatbot 2022-01-29 21:58:10 +01:00
e187f2fa77 Fixed espnow rotz 2022-01-29 21:43:18 +01:00
6a1dfc3b91 Update submodules 2022-01-29 21:10:48 +01:00
3665ac1bd4 Merge pull request #250 from bobbycar-graz/profile-copy 2022-01-29 03:36:43 +01:00
8a1051d91b Finished menu to clear, swap and copy profiles 2022-01-29 03:28:40 +01:00
98ef64d82e Added profile reset functionallity 2022-01-28 19:24:56 +01:00
cfa278a4b1 Basic Menu for managing profiles 2022-01-27 18:02:42 +01:00
bc8cc945e3 Merge pull request #248 from bobbycar-graz/seatbot 2022-01-27 18:01:27 +01:00
e3640046c0 Refactored voltage readings 2022-01-27 01:09:52 +01:00
23e94b213f Added seatbot config 2022-01-26 18:21:59 +01:00
fef3c2d5af Table is still alive 2022-01-26 18:21:59 +01:00
62987cb374 Es funzt jetzt 2022-01-26 18:21:59 +01:00
8bbb098945 Removed copyFromSettings(); Added deadband 2022-01-26 18:21:59 +01:00
003e961c19 SDK-Config 2022-01-26 18:21:59 +01:00
976fc7cf2f Added ifdef 2022-01-26 18:21:58 +01:00
44293a7a32 Added newline 2022-01-26 18:21:58 +01:00
25a0077b88 Fixed code formatting 2022-01-26 18:21:58 +01:00
5d4bd322dc Added some ifdefs 2022-01-26 18:21:58 +01:00
eed2ee4b23 Wheelchair 2022-01-26 18:21:58 +01:00
299729a272 Added seatbot stuff 2022-01-26 18:21:58 +01:00
4d61959c5b Merge pull request #237 from bobbycar-graz/more-statistics 2022-01-26 18:19:42 +01:00
b27cf645e6 Forgot to actually use EstimatedKmLeft 2022-01-26 18:10:26 +01:00
bc340a3319 Implemented remaining estimate km left 2022-01-26 18:10:26 +01:00
d8c97d7f20 Added avg speed over time 2022-01-26 18:10:26 +01:00
40918ec32a Merge pull request #233 from bobbycar-graz/statusdisplay-fix 2022-01-26 18:09:56 +01:00
5a034278f4 Added fix for labels 2022-01-17 09:50:39 +01:00
e23de353aa Merge pull request #243 from bobbycar-graz/can_recovery_action
Added can recovery menu action
2022-01-15 16:44:40 +01:00
4ea3550d54 Added can recovery menu action 2022-01-15 16:32:08 +01:00
c3d364365a Merge pull request #242 from bobbycar-graz/can-debug
More can debug options
2022-01-14 12:04:22 +01:00
5b132cbac3 More can debug options 2022-01-14 11:58:24 +01:00
e611ac0b6d Merge pull request #241 from bobbycar-graz/update-badges 2022-01-14 08:34:01 +01:00
395f7a1829 Updated badges 2022-01-14 08:22:54 +01:00
9ffc85ddec Merge pull request #240 from bobbycar-graz/update_submodules
Update submodules and esp-idf
2022-01-13 22:17:02 +01:00
6d30549264 Updated submodules 2022-01-13 22:03:12 +01:00
f1b4ef9b06 Merge pull request #228 from bobbycar-graz/ci-refactoring 2022-01-13 14:07:02 +01:00
8b91e63f47 Removed 'github does not support ifs' 2022-01-13 13:54:36 +01:00
940c076977 Forgot to download cache 2022-01-13 11:06:14 +01:00
2f13a1b8b1 Combined analysis 2022-01-13 10:54:52 +01:00
592974935e Forgot pipe symbol 2022-01-13 09:58:10 +01:00
9421847f9b test 2022-01-10 08:28:18 +01:00
e6ab721546 Keine ahnung wie viel ich gemacht hab 2022-01-10 08:28:18 +01:00
626d44894d Smaller fixes in workflow.yml 2022-01-10 08:28:18 +01:00
9992bc7286 Fixed wrong build wrapper ouput dir in workflow.yml 2022-01-10 08:28:18 +01:00
11972b31dd Completely refactored CI workflow 2022-01-10 08:28:17 +01:00
27e6ff0c67 Merge pull request #235 from bobbycar-graz/fix-typo 2022-01-10 08:26:52 +01:00
1a5d1e7af5 Copy paste error 2022-01-10 08:16:16 +01:00
d5f4e1a9a2 Merge pull request #232 from bobbycar-graz/statusdisplay-blinker 2022-01-05 02:51:44 +01:00
bd8c32b856 added if-def 2022-01-05 02:47:42 +01:00
6f7fb5817d Added blinker visualization 2022-01-05 02:40:57 +01:00
eaa2951845 Merge pull request #231 from bobbycar-graz/quickaction_wifi_scan
add wifi scan for quick action
2022-01-05 02:17:59 +01:00
a5e41c44a9 add wifi scan for quick action 2022-01-05 02:09:25 +01:00
6b42f5093c Merge pull request #230 from bobbycar-graz/better-quick-actions 2022-01-05 01:31:44 +01:00
10501dacf6 Added quick action select display 2022-01-05 01:21:42 +01:00
280263c145 Sort & added main/bobbyquickactions 2022-01-04 23:35:11 +01:00
64adfc6cb3 Merge pull request #229 from bobbycar-graz/cleanup 2022-01-04 22:25:33 +01:00
508134f0da Fixed actions 2022-01-04 22:15:05 +01:00
dc33a88316 Fixed labels 2022-01-04 22:11:45 +01:00
a0254e36bf Added labels for percentages 2022-01-04 21:18:49 +01:00
802d91deb9 Added display for dBm (wifi) 2022-01-04 21:17:56 +01:00
215061d721 Added saving boot-battery-wh 2022-01-04 21:16:33 +01:00
a3957d0514 Commented out heap debug code; Added saving boot-battery-wh 2022-01-04 21:16:06 +01:00
795a46e54d Code cleanup 2022-01-04 19:13:20 +01:00
dc15d48f36 bleSettings.enable did not show up in webserver 2022-01-04 19:11:47 +01:00
ce3885b7e0 Merge pull request #227 from bobbycar-graz/fix-candebugmenu-old-idf
Fix CanDebugMenu for old IDF
2022-01-04 03:01:51 +01:00
68b15c0dbe Fix CanDebugMenu for old IDF 2022-01-04 02:53:23 +01:00
78512b17dc Merge pull request #226 from bobbycar-graz/can-debug-menu
Add CanDebugMenu
2022-01-04 02:44:49 +01:00
914a1dc60c Add CanDebugMenu 2022-01-04 02:39:22 +01:00
0c77d459a5 Merge pull request #225 from bobbycar-graz/cleanups
Cleanups
2022-01-04 01:06:11 +01:00
f7f9c180af Cleanups 2022-01-04 00:56:07 +01:00
5ed4146341 Merge pull request #224 from bobbycar-graz/gschissenes-std-optional 2022-01-03 23:57:19 +01:00
03aeee7a22 Umgebaut 2022-01-03 23:48:46 +01:00
c8e36dda17 Merge pull request #223 from bobbycar-graz/sdkconfig 2022-01-03 23:31:46 +01:00
5f9638449a Reenabled timezones 2022-01-03 23:22:16 +01:00
1a5ed56788 Merge pull request #222 from bobbycar-graz/new_idf
Updat to newest idf
2022-01-03 23:11:00 +01:00
515c373827 Updated newest idf 2022-01-03 22:53:53 +01:00
c0178f2026 Merge pull request #221 from bobbycar-graz/webserver-newsettings-enum-types
Webserver newsettings enum types
2022-01-03 22:15:54 +01:00
d0a4ac2d4c Webserver newsettings add support for LedstripAnimation 2022-01-03 22:09:43 +01:00
6498723c4d Webserver newsettings add support for HandbremseMode 2022-01-03 22:09:43 +01:00
bc83dc5b5a Webserver newsettings add support for OtaAnimationModes 2022-01-03 22:09:43 +01:00
8579dd1ca8 Merge pull request #220 from bobbycar-graz/fix-ledstrip
Fixed ledstrip animationType
2022-01-03 22:08:08 +01:00
a3e719bd81 Fixed ledstrip animationType 2022-01-03 22:04:43 +01:00
64a6c14d82 Merge pull request #219 from bobbycar-graz/fix-qr
Fix qr import
2022-01-03 22:04:13 +01:00
2bad15978d Fixed qr import 2022-01-03 21:55:07 +01:00
7e5f9b53ad Merge pull request #218 from bobbycar-graz/shit-fix
Shit config fix (indentations, other small changes)
2022-01-03 21:26:40 +01:00
6c251fc566 Shit fix 2022-01-03 21:17:31 +01:00
bdbfde6868 Merge pull request #217 from bobbycar-graz/debug-text 2022-01-03 18:25:45 +01:00
483b5ee4e3 Added debug text for can resets 2022-01-03 18:16:48 +01:00
41b54a2a5f Removed include (#216) 2022-01-03 16:45:52 +00:00
2f0f5357ad Merge pull request #215 from bobbycar-graz/update-libs
Update libs
2022-01-03 17:36:57 +01:00
2dce835d17 Update libs 2022-01-03 17:30:40 +01:00
b3ed07aad1 Merge pull request #211 from bobbycar-graz/more-config-updates 2022-01-03 17:27:04 +01:00
4298710f19 Renamed settings into profileSettings 2022-01-03 17:13:45 +01:00
6e224443c3 Removed hybrid mode 2022-01-03 15:05:37 +01:00
0eb3165216 Moved settings.savedStatistics, settings.handbremse and settings.espnow 2022-01-03 03:28:05 +01:00
da10c84210 Moved settings.lockscreen 2022-01-03 03:03:40 +01:00
eed4f541ec Moved settings.battery 2022-01-03 01:31:48 +01:00
7466a2c3d2 Fixed ledstrip compiling 2022-01-03 00:52:32 +01:00
55496ce87f Removed ledstrip length 2022-01-03 00:52:15 +01:00
654bed2827 Fixed compiling 2022-01-03 00:40:27 +01:00
afe7201d00 Fixed linking 2022-01-03 00:33:14 +01:00
691363129b initial try of custom type in config lib 2022-01-03 00:08:34 +01:00
ade2da7fd2 Readded queue 2022-01-03 00:07:46 +01:00
7f924d8cc2 Moved settings.ledstrip 2022-01-02 22:43:33 +01:00
d276cadc33 Removed wrong file 2022-01-02 22:08:12 +01:00
97d14fda0e Fixed cloud 2022-01-02 21:12:57 +01:00
7c1efb1342 Removed presets menu 2022-01-02 17:17:38 +01:00
116f343523 transfered settings.boardcomputerHardware, settings.cloudSettings and udpCloudSettings 2022-01-02 16:28:31 +01:00
37336d70e5 Oida weg damit 2022-01-02 16:28:31 +01:00
45cd8903df transfered settings.bleSettings and settings.controllerHardware 2022-01-02 16:28:30 +01:00
a4a530b2a3 Merge pull request #213 from bobbycar-graz/feedc0de_fixes
Fix feedc0de config
2022-01-02 16:16:42 +01:00
b9bc5806ed Fix feedc0de config 2022-01-02 16:08:52 +01:00
911a843a39 Merge pull request #210 from bobbycar-graz/esp-now-cleanup 2022-01-01 20:05:40 +01:00
cdf4d6d5ae Removed queue 2022-01-01 19:59:49 +01:00
702e4a7f41 Added can option in menudisplay 2022-01-01 19:58:19 +01:00
e5ac773e39 Merge pull request #209 from bobbycar-graz/cleanup 2022-01-01 17:39:43 +01:00
ba92deb4a9 cleanups 2022-01-01 17:32:08 +01:00
048e1d9482 Merge pull request #208 from bobbycar-graz/extra-button-calibration 2022-01-01 17:25:50 +01:00
e2547867b3 Darker color 2022-01-01 17:13:16 +01:00
0bd64fd40e Added display to calibrate other buttons 2022-01-01 17:03:05 +01:00
607e6ef2c2 Removed back button to enable spamming until this screen (quick back) 2022-01-01 15:02:45 +01:00
bde4524086 Merge pull request #207 from bobbycar-graz/icon-updates 2021-12-31 18:48:35 +01:00
2c91b399b5 Removed background 2021-12-31 18:41:25 +01:00
dca82df270 Merge pull request #205 from bobbycar-graz/button-calibrate
Removed InputDispatcher, add lots of more changevaluedisplays for wifi
2021-12-31 18:28:49 +01:00
3081fc553b Button calibrate menu item 2021-12-31 18:24:11 +01:00
0288ac93a3 Calibrate display save button configs 2021-12-31 18:24:11 +01:00
97c12b103c Basic button calibration implementation 2021-12-31 18:24:11 +01:00
e8a4a9f4b8 Add button calibrate display 2021-12-31 18:24:11 +01:00
0a35bfb77d Remove dpad debug displays 2021-12-31 18:24:11 +01:00
b1de1de93a Removed InputDispatcher, add lots of more changevaluedisplays for wifi 2021-12-31 18:24:11 +01:00
973fb66985 Merge pull request #206 from bobbycar-graz/new-icons 2021-12-30 21:38:23 +01:00
c2a5044667 Finally added missing icons 2021-12-30 21:31:07 +01:00
8619dfff1f Merge pull request #204 from bobbycar-graz/new-changevaluedisplays
New changevaluedisplays
2021-12-30 03:57:48 +01:00
e1a44e0138 Smaller changes 2021-12-30 03:50:43 +01:00
7536e1be9a Quick fix with plugins 2021-12-30 03:23:54 +01:00
f099d15707 Huge refactoring 2021-12-30 03:17:30 +01:00
d5b9c1142f Checkboxes now show an error message if saving fails 2021-12-30 00:57:53 +01:00
81701b4096 String inputs in webserver implemented 2021-12-30 00:00:31 +01:00
68e8c9ea4a Added string inputs for ap ssid and key 2021-12-29 22:54:44 +01:00
4a37f53929 Merge pull request #203 from bobbycar-graz/input-refactorings
Input reafactorings
2021-12-29 22:32:07 +01:00
da1927776e All change value displays now have a confirm and errorOccured 2021-12-29 22:26:44 +01:00
4b9a36f507 Implemented error handler in ChangeValueDisplays 2021-12-29 21:53:47 +01:00
855dbca1ca Again too many improvements 2021-12-29 21:14:13 +01:00
3cd17b6479 More settings refactorings 2021-12-29 21:14:13 +01:00
9540898ced Lots of improvements with newsettings 2021-12-29 21:14:13 +01:00
f50f6eaf1e ADC calib in newsettings 2021-12-29 21:14:13 +01:00
bce81b363b Merge pull request #201 from bobbycar-graz/ledsync 2021-12-29 20:34:10 +01:00
96c22bb2e6 Added syncing 2021-12-29 20:21:51 +01:00
94b47df7dd Merge pull request #202 from bobbycar-graz/more-configs-in-newsettings
Remove string settings
2021-12-29 16:14:32 +01:00
535e643c24 Removed stringSettings completely 2021-12-29 16:07:59 +01:00
aeb89a8d96 moved time related settings into newsettings 2021-12-29 15:49:52 +01:00
2c1aca079f Moved otaServerUrl and otaServerBranch into newsettings 2021-12-29 15:29:48 +01:00
6138c187f4 Moved ota username into newsettings 2021-12-29 15:19:44 +01:00
47233e5ad6 Moved dns announce related stuff into newsettings 2021-12-29 15:12:29 +01:00
e1066f4eae Merge pull request #200 from bobbycar-graz/more-configs-in-newsettings
Move more configs into newSettings
2021-12-29 06:30:51 +01:00
4e1943dbc8 Moved webserverPassword into newSettings 2021-12-29 06:19:09 +01:00
b013bbd693 Merge pull request #199 from bobbycar-graz/more-configs-in-newsettings
Move more configs into newsettings
2021-12-29 06:05:47 +01:00
1aa556dca1 Moved otaUrl into newSettings 2021-12-29 06:00:48 +01:00
c025001d86 Moved udpCloudHost into newSettings 2021-12-29 05:51:49 +01:00
c7fb30a870 Moved cloudUrl into newsettings 2021-12-29 05:42:08 +01:00
3b73865000 Merge pull request #197 from bobbycar-graz/esp_now_substr_fix
fix substr of esp now receive
2021-12-29 05:41:22 +01:00
dfd2f45828 Merge branch 'master' into esp_now_substr_fix 2021-12-29 05:38:16 +01:00
d9f41eb016 Merge pull request #198 from bobbycar-graz/fix_can_reset_counter
Fix can reset counter
2021-12-29 05:36:51 +01:00
6f1a69432d Merge branch 'master' into esp_now_substr_fix 2021-12-29 05:31:43 +01:00
23c5393ca7 Merge branch 'master' into fix_can_reset_counter 2021-12-29 05:31:38 +01:00
66f5ed4137 fix substr of esp now receive 2021-12-29 05:29:36 +01:00
8de0c1309a Merge pull request #196 from bobbycar-graz/webserver_newsettings_reset
Add reset option to webserver newSettings
2021-12-29 05:25:25 +01:00
d8219a7bcf Merge pull request #195 from bobbycar-graz/enable_feedc0de_udp_cloud
Add UDP cloud to feedc0de config
2021-12-29 04:59:03 +01:00
d2fe70fbe4 Add reset option to webserver newSettings 2021-12-29 04:52:33 +01:00
aa3552e3b4 Add UDP cloud to feedc0de config 2021-12-29 04:51:36 +01:00
a5831c2ab6 improve can bus logging 2021-12-29 04:41:10 +01:00
412d82caeb can bus error count fix 2021-12-29 04:36:22 +01:00
a8a28081d6 Merge pull request #193 from bobbycar-graz/fixed-newsettings
Co-authored-by: Peter Pötzi <peter.poetzi@gmail.com>
2021-12-29 04:09:37 +01:00
23736348d3 Fixed newsettings 2021-12-29 04:04:11 +01:00
29c2dc7f1d Moved into newsettings 2021-12-29 04:04:10 +01:00
e74bb68456 Merge pull request #194 from bobbycar-graz/fix_can_reset
Fix can reset
2021-12-29 04:02:38 +01:00
1fe9ff26a6 improve can reset 2021-12-29 03:57:22 +01:00
4b5c2a2be1 Merge pull request #192 from bobbycar-graz/buzzer-newsettings
Moved buzzer settings into newSettings
2021-12-29 03:46:18 +01:00
eedecad2a0 Moved buzzer settings into newSettings 2021-12-29 03:32:01 +01:00
309e829f1f Merge pull request #190 from bobbycar-graz/feature_canbus_reset
feature can bus reset on error
2021-12-29 03:18:54 +01:00
189535b059 feature can bus reset on error 2021-12-29 03:11:31 +01:00
b9c48fe886 Merge pull request #189 from bobbycar-graz/new-wifi-menu
Add new WiFi menu
2021-12-29 02:39:38 +01:00
6ce5ca3927 Add action to delete wifi config 2021-12-29 02:36:14 +01:00
3f6eeca8d6 Add new WiFi menu 2021-12-29 02:13:10 +01:00
86e5e9cf0e Merge pull request #188 from bobbycar-graz/new-wifi-config
Wifi from new settings
2021-12-29 01:05:17 +01:00
4f665bc6fb Fixed compilation 2021-12-29 00:53:06 +01:00
67249cfb2f Wifi from new settings 2021-12-29 00:40:05 +01:00
32d57e4f6a Merge pull request #187 from bobbycar-graz/webserver-newsettings
Webserver newsettings
2021-12-28 23:45:17 +01:00
5cdf650627 implemented getters setters for newconfig 2021-12-28 23:27:47 +01:00
138412e2ae webserver fixes 2021-12-28 23:27:47 +01:00
7b1c64c08e webserver cleanups 2021-12-28 23:27:47 +01:00
27863b2bf0 Is mir egal ob der webserver korrekt arbeitet (keine locks) 2021-12-28 23:27:46 +01:00
9d09c9ceaf Added confirm and back (#186) 2021-12-28 20:49:28 +00:00
39f80e2bda Config update, ci update 2021-12-28 19:28:35 +01:00
2021e308e4 Update userconfigs.yml 2021-12-28 18:34:37 +01:00
a8b64aa608 Merge pull request #182 from bobbycar-graz/new-input-system
New input system
2021-12-28 14:18:45 +01:00
9e3532e457 Fixed compilation error with udp cloud 2021-12-28 13:49:45 +01:00
b3d03989d7 Fixed linker errors 2021-12-28 13:41:12 +01:00
9145853649 More refactorings again 2021-12-28 13:08:54 +01:00
d12c943f89 More refactorings 2021-12-28 12:33:04 +01:00
f7bae3fe91 Even more menus converted to new input system 2021-12-28 03:34:32 +01:00
3403c65987 More displays converted to bobby displays 2021-12-28 03:13:53 +01:00
39a6a7df71 More and more refactorings 2021-12-28 03:13:53 +01:00
9ac12cec05 More refactorings 2021-12-28 03:13:53 +01:00
1a3fb0a0a9 New input system work in progress 2021-12-28 03:13:53 +01:00
31fdbae77b Merge pull request #183 from bobbycar-graz/new-fastled
Update FastLED library
2021-12-28 02:45:42 +01:00
bee30e4bfb Update FastLED 2021-12-28 02:34:47 +01:00
530970ca44 Added esp-now to config 2021-12-27 23:58:53 +01:00
2e63d06661 Added esp now 2021-12-27 23:47:21 +01:00
811b28ce8a Fixed serial input 2021-12-25 19:06:34 +01:00
6415448f9b Added check for local key 2021-12-24 15:16:14 +01:00
3b701ff258 Merge pull request #175 from bobbycar-graz/gpg 2021-12-24 12:30:44 +01:00
013a0617cf Updated encrypt script and ignore 2021-12-24 12:20:59 +01:00
9d1cf7d8d2 Forgot env variable 2021-12-24 12:20:58 +01:00
b147e802f8 Updated workflow 2021-12-24 12:20:58 +01:00
1b59251a99 Added ignore tar 2021-12-24 12:20:58 +01:00
99f1517db5 Paths were a bad idea 2021-12-24 12:20:43 +01:00
83007d55c1 Merge pull request #174 from bobbycar-graz/better-ci
Only rebuild when certain files change
2021-12-24 11:29:34 +01:00
6693adc1ef Blocked auto-merging 2021-12-24 11:22:07 +01:00
3c61012161 Update README.md 2021-12-24 10:42:49 +01:00
ba12e18874 Updated name 2021-12-24 10:41:09 +01:00
287bd2bec0 Only rebuild when certain files change 2021-12-24 10:20:48 +01:00
6f37344d5a renamed display name 2021-12-24 10:11:52 +01:00
e22b4ace9c Merge pull request #173 from bobbycar-graz/update_submodules
Update submodules
2021-12-24 01:39:25 +01:00
8d7e94958a Disable shallow clone for user configs 2021-12-24 01:30:22 +01:00
4779d02a9e Update submodules 2021-12-24 01:28:16 +01:00
e85375bb80 Merge pull request #171 from bobbycar-graz/feature-testing 2021-12-23 17:08:33 +01:00
e4d1bec58a Forgot build command 2021-12-23 15:58:34 +01:00
5ca3c6df3b Did not see those 2021-12-23 15:51:43 +01:00
b341daefa5 Changed name and removed a config 2021-12-23 15:50:36 +01:00
86daa1a8cb Added sepperate workflows for sonar-cloud and normal building 2021-12-23 15:48:25 +01:00
b551d5a88d Added statistics icon source 2021-12-23 12:08:54 +01:00
8c839469f3 Added statistics icon source 2021-12-23 12:07:40 +01:00
d11955448d No esp chrono support 2021-12-23 08:15:14 +01:00
31a0caabba Added missing files 2021-12-23 08:07:07 +01:00
5b75a01777 Test all and no features 2021-12-23 07:47:08 +01:00
1d2edee3db Fixed wifi issues 2021-12-20 12:47:25 +01:00
89e4c64e2c Moved export msg 2021-12-20 11:59:11 +01:00
4104cafb59 Merge pull request #170 from bobbycar-graz/display_in_taskmanager
Moved display's update and redraw into task manager
2021-12-20 11:27:31 +01:00
1830df26fd Moved display's update and redraw into task manager 2021-12-20 10:52:02 +01:00
2a56f59d86 Removed no longer needed code 2021-12-20 10:45:36 +01:00
8074f63578 Fixed initScreen for lockscreen (digits missing) 2021-12-20 00:32:58 +01:00
78a1734133 Merge pull request #155 from bobbycar-graz/new_idf
Update to newest idf
2021-12-20 00:04:56 +01:00
01841f11a1 Updated to newest idf 2021-12-19 23:54:29 +01:00
5f26d607eb Merge pull request #168 from bobbycar-graz/more_tasks_in_taskmanager
Move tasks into task manager
2021-12-19 23:53:57 +01:00
95ae227a97 Moved handle_dns_announce and dnsannounce into task manager 2021-12-19 23:40:41 +01:00
0adb55c668 Removed modeUpdateRate config parameter 2021-12-19 23:30:54 +01:00
f8a14414e2 Moved driving mode into own task 2021-12-19 23:25:52 +01:00
c7420afd9c Moved bms into task manager 2021-12-19 22:50:50 +01:00
05af290420 Merge pull request #167 from bobbycar-graz/taskmanager_menu
Add taskmanager menu
2021-12-19 20:44:36 +01:00
ba694f0fcf CPU freq to 240MHz for feedc0de config 2021-12-19 20:42:01 +01:00
ab7052b52c Disable esp-now for feedc0de config 2021-12-19 20:41:36 +01:00
eb55b20511 Taskmanager menu show elapsed times 2021-12-19 20:32:37 +01:00
cad8ce5d3c Added taskmanager menu 2021-12-19 19:54:31 +01:00
17540b7a1e Merge pull request #165 from bobbycar-graz/reduce_statusdisplay_fps
Reduce StatusDisplay FPS to increase performance
2021-12-19 18:26:44 +01:00
25f0494ab7 Reduce StatusDisplay FPS to increase performance 2021-12-19 18:13:42 +01:00
2110624880 Merge pull request #166 from bobbycar-graz/disable_failing_rsync
Remove failing rsync build step
2021-12-19 18:07:37 +01:00
d44fb8ec9a Remove failing rsync build step 2021-12-19 17:54:36 +01:00
b084839ba8 Merge pull request #164 from bobbycar-graz/more_tasks_in_taskmanager
Add more tasks to task manager
2021-12-19 17:35:06 +01:00
e0f3ceee7c cloud and udpcloud splitup and into taskmanager migrated 2021-12-19 17:20:55 +01:00
058745abd5 Moved espnow into task manager 2021-12-19 16:48:42 +01:00
b3299c8325 Add ledstrip to task manager 2021-12-19 16:42:45 +01:00
872a7e45fa Enable log with filename/function name for all configs 2021-12-19 16:40:55 +01:00
868b9dd6d4 Merge pull request #163 from bobbycar-graz/more_tasks_in_taskmanager
More more tasks into task manager
2021-12-19 05:09:36 +01:00
b55b649b10 Moved webserver into taskmanager 2021-12-19 04:56:24 +01:00
be53c39ebf moved ble to taskmanager 2021-12-19 04:48:12 +01:00
04515eecb5 Moved ota to taskmanager 2021-12-19 04:42:01 +01:00
a1946e2e02 Moved serial controller comm to taskmanager 2021-12-19 04:35:37 +01:00
3ae6721402 debuginput task in taskmanager 2021-12-19 04:23:47 +01:00
8210c57dff Moved can into task manager 2021-12-19 04:02:12 +01:00
514f993b9c Merge pull request #162 from bobbycar-graz/temporary-disable-artifact-upload
Temporary disable artifact upload
2021-12-19 03:52:07 +01:00
a86f27748f Temporary disable artifact upload 2021-12-19 03:40:14 +01:00
b721341210 Merge pull request #161 from bobbycar-graz/enable-sonar-cache
Enable sonar cache
2021-12-19 03:19:13 +01:00
53aaa9dc43 Enable sonar cache 2021-12-19 03:06:08 +01:00
562b5d25ac Merge pull request #160 from bobbycar-graz/more_tasks_in_taskmanager
More tasks in task manager
2021-12-19 03:01:31 +01:00
2ec19d2def bluetooth to taskmanager migrated 2021-12-19 02:49:50 +01:00
304ce9925f More tasks in task manager 2021-12-19 02:49:50 +01:00
09431cc305 Merge pull request #158 from bobbycar-graz/feature-nvs-store-qr 2021-12-19 02:26:21 +01:00
599965f0bd Added delete function 2021-12-19 02:12:34 +01:00
f6c3e95f9d Add delete methods 2021-12-19 02:03:07 +01:00
13cef1a32d Added nvs saving 2021-12-19 01:55:43 +01:00
d6198d5320 Activated logging 2021-12-19 01:55:30 +01:00
6c9581bb78 implemented qr code setter 2021-12-18 23:09:48 +01:00
db19e574c0 Implemented getter for qr codes 2021-12-18 23:06:06 +01:00
155f56863e Added new function 2021-12-18 22:24:23 +01:00
a9798713ed Added qr import display 2021-12-18 22:24:23 +01:00
80d141a109 Merge pull request #159 from bobbycar-graz/shallow-clone-for-sonar
Do shallow clones for sonar
2021-12-18 20:46:52 +01:00
9c80aa4250 Do shallow clones for sonar 2021-12-18 20:33:50 +01:00
49bda3f88d Add Sonar badges 2021-12-18 20:26:42 +01:00
40d85d81cd Merge pull request #157 from bobbycar-graz/more_tasks_in_taskmanager
more tasks in task manager
2021-12-18 20:23:28 +01:00
b5c6823a80 more tasks in task manager 2021-12-18 20:08:40 +01:00
444df158e9 Merge pull request #152 from bobbycar-graz/menudisplaywithtime_refactoring
Remove m_ from method name
2021-12-18 19:01:05 +01:00
2c28cf9107 Merge branch 'master' into menudisplaywithtime_refactoring 2021-12-18 18:51:15 +01:00
7611613ca7 Merge pull request #154 from bobbycar-graz/sonar-multithreaded
Sonar use multithreads
2021-12-18 18:50:37 +01:00
a7d7448c52 Sonar use multithreads 2021-12-18 18:37:10 +01:00
03932c5683 Merge pull request #153 from bobbycar-graz/sonar-analyze
Enable sonar analyze
2021-12-18 18:17:20 +01:00
217e45de6a Add sonar build step 2021-12-18 18:04:20 +01:00
abb76a29b9 Changed 2021-12-18 16:45:58 +01:00
023986b827 Added sourced-indicator 2021-12-18 12:55:29 +01:00
81d5a3bc95 Merge pull request #150 from bobbycar-graz/fix-qr 2021-12-18 02:55:51 +01:00
d3e2323c74 Fixed submodules 2021-12-18 02:30:06 +01:00
56b3e8cdd1 Fixed qr code 2021-12-18 02:17:30 +01:00
55d9f432d7 WEG DAMIIIIIIITTTTT 2021-12-18 01:03:25 +01:00
e6d4133d2e Removed old library 2021-12-18 00:59:23 +01:00
8780ab8c7c wifi task 2021-12-18 00:59:22 +01:00
cce5dc38da Merge pull request #148 from bobbycar-graz/cpp-refactor
Refactoring and many new features!
2021-12-18 00:46:51 +01:00
df6e0e55f5 Merge branch 'master' into cpp-refactor 2021-12-18 00:39:57 +01:00
13fe185ac1 Merge pull request #137 from bobbycar-graz/taskmanager
Taskmanager
2021-12-18 00:39:30 +01:00
f47bf772ef Dodln 2021-12-18 00:24:56 +01:00
93556a00fe Scheiß 2021-12-18 00:10:58 +01:00
cef961c174 Move into anonymous namespace 2021-12-17 23:30:58 +01:00
a4d80c640d Added error helping 2021-12-17 23:28:48 +01:00
9ddf246805 Change 2021-12-17 23:13:07 +01:00
b48648f3e2 advanced lock 2021-12-17 22:40:08 +01:00
bcfbb98362 Moved log 2021-12-17 22:39:36 +01:00
6492531183 Fixed compiling issues because of includes 2021-12-16 21:56:18 +01:00
8bd5b21436 Merge branch 'taskmanager' into cpp-refactor 2021-12-16 21:41:13 +01:00
d91b6cb6e1 Merge branch 'master' into taskmanager 2021-12-16 21:40:06 +01:00
180e3fbaa8 Fixed if else 2021-12-16 21:10:11 +01:00
16ebdfc795 Added deinit() for esp now 2021-12-16 20:48:11 +01:00
5903fc21b1 MenuDisplayWithTime now supports font size 2021-12-16 20:48:06 +01:00
b59d9dff9f Fixed includes and changed to new MenuDisplayWithTime 2021-12-16 20:48:00 +01:00
92f41a0ce1 Changed some menus to show how new displaywithtime class works 2021-12-16 20:47:54 +01:00
4f109d4d08 Moved time to special menudisplay 2021-12-16 20:47:47 +01:00
4a2254df0b Fixed compiling for non-espnow-users 2021-12-16 20:47:38 +01:00
6adca753aa Back button now does something and lockscreen can OPTIONALLY be set to stay over reboot (Implemented #146) 2021-12-16 20:47:29 +01:00
595a508d93 Added esp-now timesync 2021-12-16 20:47:23 +01:00
647f86906b Changed back action to a menu that makes more sense 2021-12-16 20:47:17 +01:00
42067b1a3b Added esp now menu and timesync between bobbycars 2021-12-16 20:47:12 +01:00
66e40248fe Do not accept update if time is already set by ntp 2021-12-16 20:47:01 +01:00
5d424a4377 Fixed chrono literals 2021-12-16 20:46:45 +01:00
24607b3a0c Fixed compiling issues 2021-12-16 20:46:37 +01:00
aabae8b8b6 Refactored settingsutils 2021-12-16 20:46:29 +01:00
02999bcde1 Refactored ledstripanimationactions, ledstripactions, bmsdisplay, accesspointwifisettingsmenu, feedbackdebugmenu, ledstripmenu, ledstripselectblinkmenu, ledstripselectotamode, mosfetsmenu 2021-12-16 20:46:19 +01:00
27019b7d75 Added vscode ignore 2021-12-16 20:46:14 +01:00
0e3053a45b Added esp now garage opener 2021-12-16 20:45:06 +01:00
e07cb9d373 Added time sync via esp now 2021-12-16 20:44:59 +01:00
f9bc8b341d Forgot to set error timeout 2021-12-16 20:44:52 +01:00
c50787ba84 Fixed esp_now_init(), added message queue to not block the callback function 2021-12-16 20:44:45 +01:00
24e8543ff3 Removed coredump from my config 2021-12-16 20:44:39 +01:00
4357f1c7a5 Updated 2021-12-16 20:43:02 +01:00
c6f2392289 Non-working commit 2021-12-16 20:42:47 +01:00
c1a4058a22 Added useful qr code 2021-12-16 20:40:29 +01:00
9f18bd980c Added qr code debug menu 2021-12-16 20:40:23 +01:00
2616af5a30 Updated QR library 2021-12-16 20:40:08 +01:00
d4955349a8 Added QR code library 2021-12-16 20:39:43 +01:00
60a960429e Added better logging 2021-12-11 22:28:19 +01:00
02aae7120c introduced a lot of new tasks in the taskmanager 2021-12-11 20:10:44 +01:00
13d35d50a1 wifi task 2021-12-11 20:10:44 +01:00
bb06fe6ba6 taskmanager 2021-12-11 20:10:44 +01:00
31210150cf Added ignore 2021-12-11 19:59:32 +01:00
e4b171c90f Fixed wrong direction for other users 2021-12-11 05:53:05 +01:00
508c90800a Added battery doubleprogressbar 2021-12-11 05:05:46 +01:00
70382088a0 Fixed #142 2021-12-11 03:43:24 +01:00
bd9fdeac7b Added check for required redraw 2021-12-11 01:28:57 +01:00
169d5434da Fixed directions 2021-12-11 01:28:24 +01:00
0c33f3668a Fixed ota page 2021-12-10 21:22:35 +01:00
47d4492925 Added headers 2021-12-10 20:29:49 +01:00
2a41155f77 Updated esp-gui-lib 2021-12-10 12:21:35 +01:00
5ca42235ba Removed pragma once 2021-12-10 12:14:38 +01:00
50c251d679 Merge branch 'better-website' 2021-12-10 12:10:02 +01:00
1f9a53dd7e Added color and fixed json 2021-12-10 10:01:49 +01:00
f2e5478106 Added icon names corresponding to their .png filename 2021-12-10 07:29:34 +01:00
c6bfc4b77a Fixed a few bugs in json view 2021-12-10 07:25:16 +01:00
24db6a7ce5 Updated gui lib 2021-12-09 22:43:31 +01:00
7761f415a5 Added security to json backend 2021-12-09 14:56:06 +01:00
64ac74ea5d Fixed non-feature-ota compiling 2021-12-09 08:06:38 +01:00
38470629b8 Update README.md 2021-12-09 07:42:41 +01:00
b8172e7b63 Added ledstrip length 2021-12-09 07:40:39 +01:00
583bd4992f Weg damit 2021-12-09 07:39:20 +01:00
57fe5b14b7 Added ledstrip 2021-12-09 07:35:24 +01:00
a611ad3db4 Added ledstrip 2021-12-09 07:33:17 +01:00
f1053cd3b5 Weg damit 2021-12-09 07:22:57 +01:00
8caf8789dd Added json versions of websites 2021-12-09 00:33:40 +01:00
98641cfc04 Added plugin and fixed compiling 2021-12-09 00:21:27 +01:00
e4b3a594f4 Added plugin and fixed compiling 2021-12-09 00:19:52 +01:00
cc0a23802f Added new parameter and fixed ifdef 2021-12-08 22:50:30 +01:00
b899b0a503 Require OTA_USERNAME 2021-12-08 22:49:25 +01:00
f99562f9bc Lets not speak about that... 2021-12-08 22:29:01 +01:00
24224079bd Merge pull request #139 from bobbycar-graz/cpp-refactor
Fixed Handbremse
2021-12-08 20:57:07 +01:00
0837333731 Fixed handbremse (deleted old code and wrote new code :D) 2021-12-08 02:24:44 +01:00
bc9c7c22a8 Fixed ota animation 2021-12-08 02:24:24 +01:00
f548a14b5d Fixed webserver 2021-12-08 02:03:41 +01:00
cf498db01e Decreased values 2021-12-07 23:11:55 +01:00
7051bd756f More symlinks 2021-12-07 16:12:56 +01:00
3db575f9f7 Merge pull request #138 from bobbycar-graz/cpp-refactor
More Cpp refactoring
2021-12-07 16:11:35 +01:00
36265be595 Removed debug print 2021-12-07 16:02:53 +01:00
b831d282d9 Added branch select 2021-12-07 15:54:56 +01:00
14d74a5846 Added namespace 2021-12-07 15:54:34 +01:00
5dff47f437 Refactored blesettingsmenu, ledstripselectanimationmenu, profilesmenu 2021-12-07 02:54:14 +01:00
ddf0d27137 Refactored Ledstrip (Fixed types and removed Macros) 2021-12-07 02:53:43 +01:00
c291752b46 Remove IGNORE_KEY 2021-12-06 12:17:40 +01:00
2101077f42 Fixed speed 0 mode 'quickstart' 2021-12-06 00:36:24 +01:00
0df45e74f2 Fixed visualize 2021-12-05 23:38:05 +01:00
d32b46ed3f Added handbremse variable (statusdisplay.cpp) 2021-12-05 23:18:56 +01:00
0ab293ee07 Fixed apply checks and Mosfets off mode 2021-12-05 23:08:56 +01:00
c5b9a0ab51 Cpp refactor (#136)
* Inital added file

* Sorted CMakeLists.txt

* Refactored buildserver.h into h/cpp

* Converted crashmenu, enablemenu, invertmenu, selectotabuildmenu

* Added namespace for bluetoothtexthelpers

* Converted bmsmenu, presetsmenu, timersmenu

* Moved into seperate namespace

* Converted wifiscanmenu

* Refactored texts

* Fixed commit select not working

* 240MHz

* Added handbremse

* Better spacing of buttons

* Removed unneeded file

* Added ignore

* Fixed main.yml

* Update main.yml

* Fixed path

* Fixed shitty path

Co-authored-by: CommanderRedYT <ccommanderred@gmail.com>
2021-12-05 01:22:24 +01:00
8bf7b7e39e Better spacing of buttons 2021-12-04 20:39:18 +01:00
b52d6c61d7 Fixed wrong direction 2021-12-04 03:05:34 +01:00
51e38fb6df AP password now configurable 2021-12-02 15:04:56 +01:00
c2d8042182 Added example buttons 2021-12-02 11:16:15 +01:00
704109f0d0 Fixed mv command 2021-12-01 18:41:24 +01:00
09c098f54a Fixed folder 2021-12-01 18:28:18 +01:00
574017ef0c Update main.yml 2021-12-01 18:16:42 +01:00
6a29776bd4 Removed badge as it is no longer needed 2021-12-01 18:15:48 +01:00
aee7a35362 Fiyed source 2021-12-01 17:53:29 +01:00
244a955c4b Fixed invalid path 2021-12-01 17:45:35 +01:00
46fa8cba05 Fixed tmp folder 2021-12-01 17:36:29 +01:00
546d3041bc Fixed symlink 2021-12-01 17:27:04 +01:00
e67dc15b70 Updated file names 2021-12-01 17:19:27 +01:00
06530beab0 Should be last fix 2021-12-01 16:20:31 +01:00
01a31e445e Create symlink 2021-12-01 16:10:17 +01:00
97d06c3b20 Added debug statements 2021-12-01 15:56:46 +01:00
22ae359534 Fixed paths again 2021-12-01 15:47:53 +01:00
dea02804bd Fixed paths 2021-12-01 15:35:30 +01:00
9a879ec842 Updated paths 2021-12-01 15:26:12 +01:00
4411a82348 GitHub variables are complicated 2021-12-01 15:14:03 +01:00
eb7f5a0523 Fixed github sha (hopefully) 2021-12-01 15:03:56 +01:00
99811324e2 Upload should be fixed now 2021-12-01 14:54:41 +01:00
fb3fe7b3c0 Fixed upload path 2021-12-01 14:40:18 +01:00
562fc167bc Simplified files 2021-12-01 14:38:07 +01:00
d4325f2983 Forgot user 2021-12-01 14:27:43 +01:00
740ca4680a Added debug output 2021-12-01 14:22:07 +01:00
54166bb693 Update main.yml 2021-12-01 14:10:31 +01:00
6cdccb285e Wrong use of GITHUB_SHA 2021-12-01 14:02:58 +01:00
341ef11536 Update main.yml 2021-12-01 14:01:32 +01:00
9c4ffb3482 Wrong version 2021-12-01 13:55:49 +01:00
3c45cc1742 Added rsync 2021-12-01 13:54:40 +01:00
b1c1cfa7ec Removed debug output 2021-12-01 13:22:23 +01:00
f91e722a36 Forgot env variable 2021-12-01 13:19:13 +01:00
1982a4551a Fixed type-o 2021-12-01 13:14:32 +01:00
16820b09e8 Added default workflow 2021-12-01 13:13:22 +01:00
d3000ed5f7 Added access script 2021-12-01 13:10:56 +01:00
34feb842c1 Update main.yml 2021-12-01 13:08:10 +01:00
d4a20d70a6 Added env 2021-12-01 12:12:25 +01:00
4e1f1f1c98 Forgot other backlight options 2021-12-01 11:23:43 +01:00
517d4f7fb3 Readded backlight 2021-12-01 11:22:35 +01:00
9ffaea39bc New ledstrip 2021-12-01 11:17:07 +01:00
242bc6c255 Update README.md 2021-12-01 10:06:14 +01:00
bb7c0bf019 Fixed cmake error ._. 2021-12-01 09:04:30 +01:00
98949cd411 alert flow text 2021-11-30 20:47:20 +01:00
3d13cd9946 Removed goto 2021-11-30 19:27:18 +01:00
4302b8bf5e Fixed compiling 2021-11-29 13:13:15 +01:00
7af77dd452 Fixed softlock in game of life 2021-11-29 12:58:12 +01:00
cd1f503bc7 Added motortest mode 2021-11-27 00:13:55 +01:00
5208f7382e Remove codacy badge 2021-11-26 23:46:09 +01:00
e7a6a2d506 Added first example popup 2021-11-26 23:31:17 +01:00
79bbd16371 Increased display bus speeds 2021-11-26 23:30:41 +01:00
9173ab272d Added std::string option for udp cloud 2021-11-26 18:27:44 +01:00
c94a3af910 Merge pull request #127 from bobbycar-graz/cloud
Cloud
2021-11-26 12:29:11 +01:00
5a642593c8 Update sdkconfig_comred 2021-11-26 12:23:32 +01:00
6baa17d584 Update README.md 2021-11-26 12:16:06 +01:00
e49eae2322 Fixed bootloop when coredump is activated 2021-11-26 00:55:14 +01:00
a92b2bed2c Removed required 2021-11-26 00:55:14 +01:00
0c693544ac Readded file 2021-11-26 00:55:14 +01:00
bd1307e156 Removed required 2021-11-26 00:55:14 +01:00
6076f2a57d Readded file 2021-11-26 00:55:14 +01:00
71be39556d Downgraded esp-idf 2021-11-26 00:55:11 +01:00
55674ef079 Downgraded esp-idf 2021-11-26 00:03:16 +01:00
74a3723ea7 Added more files to artifacts 2021-11-25 20:35:01 +01:00
c64e6abd01 Fixed compiling for non-cloud-users 2021-11-25 20:27:57 +01:00
63acd0c3ab Merge pull request #128 from bobbycar-graz/master
Update cloud
2021-11-25 20:11:24 +01:00
e2bf4c579f Updated Flash Size 2021-11-25 15:26:41 +01:00
2eaedb00fb Changed partition table 2021-11-25 12:52:58 +01:00
b39ad41380 Added flag to enable blinking square 2021-11-24 17:38:18 +01:00
1a4dbc5907 Fixed bootloop when coredump is activated 2021-11-24 17:37:59 +01:00
c32007bc3b Removed required 2021-11-24 16:51:38 +01:00
6ffa4580d8 Removed required 2021-11-24 16:45:33 +01:00
24cc9c9f25 Readded file 2021-11-24 16:45:33 +01:00
5e7f286d84 Update main.yml 2021-11-24 16:45:33 +01:00
6a3372b2d4 Update main.yml 2021-11-24 16:44:38 +01:00
6a529e5dca Fixed compiling without can 2021-11-24 16:43:17 +01:00
52564a74ff Removed everything that could crash 2021-11-24 16:30:44 +01:00
7bc486bc3f fixed compilation after rebase 2021-11-21 23:26:25 +01:00
ebcbdeb18c Reduced brightness 2021-11-21 23:25:12 +01:00
ffbb710429 Added udp indicator 2021-11-21 23:25:08 +01:00
ead878ffd9 Added udp cloud options and ledstrip fixes 2021-11-21 23:25:04 +01:00
19b79fe441 Fixed inverted 2021-11-21 23:25:01 +01:00
89c3de03d3 Fixed building 2021-11-21 23:24:57 +01:00
1b3c17c55d Added udp cloud 2021-11-21 23:24:52 +01:00
a43bca4bab Removed required 2021-11-21 23:24:38 +01:00
b7bf6d22a9 Fixed inverted motors 2021-11-21 23:24:07 +01:00
c335822cb9 Readded file 2021-11-21 23:23:55 +01:00
61a8b00231 Load new settings on boot 2021-11-21 23:08:32 +01:00
6e1c2d2aea Introduced the first settings parameters in newsettings 2021-11-21 20:57:23 +01:00
8565f3ba20 Remove mick build config 2021-11-21 20:57:06 +01:00
b922c5779e Updated esp-idf again 2021-11-21 19:57:58 +01:00
f0b7db5667 Feedc0de back to 240MHz 2021-11-21 19:23:51 +01:00
befb51d499 Updated esp-idf again 2021-11-21 19:23:42 +01:00
467962efeb Updated esp-idf to newest version 2021-11-21 18:01:20 +01:00
4db09fda31 fixed mick compiling too 2021-11-21 14:43:53 +01:00
33d273bbad fixed irgendwas with timezones 2021-11-21 03:55:37 +01:00
f9083d44b4 milliseconds in smaller font 2021-11-21 03:11:55 +01:00
8b0b0760e2 Fixed strange linker error 2021-11-21 03:11:39 +01:00
711896d20b driving statics menu improvements 2021-11-21 02:16:37 +01:00
b8acf12fd1 Fixed drivingstatistics ms rounding errors 2021-11-21 01:51:01 +01:00
ed51591489 driving statistics fixes 2021-11-21 01:36:44 +01:00
28a4933928 Updated esp-gui-lib 2021-11-21 01:09:35 +01:00
646e7ef51c feedc0de now with 240MHz instead of 160MHz 2021-11-21 00:58:59 +01:00
e8b1269621 Disable DNS_NS for feedc0de 2021-11-21 00:58:39 +01:00
d2487d9c7d fixes webserver 2021-11-21 00:56:28 +01:00
4e2022212c fixed graph statistics 2021-11-20 21:00:50 +01:00
652788a89e Updated submodules 2021-11-20 18:26:15 +01:00
297e5f4626 restored destroyed open_ide.sh 2021-11-20 18:19:41 +01:00
ab6aa16e0b Merge pull request #124 from bobbycar-graz/cloud
Updated master from cloud
2021-11-18 22:37:51 +01:00
7667128d71 error handling with buildserver list 2021-11-18 22:24:14 +01:00
0daba8d4eb Changed config 2021-11-18 21:06:26 +01:00
f928b38541 Changed config 2021-11-18 21:01:49 +01:00
0338e3b123 Fixed compilation for non-ledstrip-users 2021-11-18 15:27:51 +01:00
a18854659d Moved menu entry 2021-11-18 15:22:13 +01:00
5ea2423bd3 Added ota update animation 2021-11-18 15:16:11 +01:00
ce1cd04497 Updated Badges 2021-11-18 12:33:09 +01:00
819ab57306 Fixed compiling issues 2021-11-18 01:33:52 +01:00
386a8aacce Fixed type-o 2021-11-18 01:17:04 +01:00
63baa21a28 Added new variables to struct 2021-11-18 01:15:37 +01:00
2e2db854e6 Moved dns and driving stats to seperate files 2021-11-18 01:15:17 +01:00
ef02ce40fb Show energy-efficiency in statusdisplay 2021-11-18 01:14:43 +01:00
eb663a8fd6 Added new texts 2021-11-18 01:14:12 +01:00
a6651c1cd1 Added new Battery Percentage String 2021-11-18 01:13:16 +01:00
cd669c03aa Added new files 2021-11-18 01:11:39 +01:00
e2c3699eb9 Moved into seperate functions 2021-11-18 01:11:20 +01:00
1c18aa2dd7 Increased maximum header size (So webserver doesnt crash on long urls) 2021-11-17 19:50:29 +01:00
64fb51aba7 Changed announce message 2021-11-17 18:13:03 +01:00
46f30911bd Save when staying still and ip check 2021-11-17 00:15:03 +01:00
76e8adcce3 Added icons and changed texts 2021-11-15 23:11:46 +01:00
be05e42303 Added blink animation (Resolves #106) 2021-11-15 20:38:54 +01:00
be41e8018e Removed debug log 2021-11-15 20:37:08 +01:00
b9e1509a87 Added driving statistics 2021-11-15 01:53:35 +01:00
1b4498b2ca Moved Wh stats and debug texts into own menu 2021-11-15 01:50:15 +01:00
88d7697b10 Added texts 2021-11-15 01:50:01 +01:00
bcb8b9809a Added new icon 2021-11-15 01:48:55 +01:00
c79313fe11 Fixed 'Binary-Editor cannot open empty files' 2021-11-15 01:48:22 +01:00
7a62df1615 Added files 2021-11-15 01:47:35 +01:00
b311f1f377 Added more types 2021-11-14 20:42:01 +01:00
249ab13d73 Changed html to json export 2021-11-14 18:05:20 +01:00
b81afae5be Fixed compiling 2021-11-14 14:40:38 +01:00
bce722eec0 Added better autocomplete and alias 2021-11-14 14:40:13 +01:00
2afff40f87 Forgot to add BAK to battery select menu 2021-11-14 04:11:17 +01:00
afc7af9ffb Added flag for dns 2021-11-14 03:35:04 +01:00
ebb1141863 Added nvs dump and dns magic 2021-11-14 03:20:21 +01:00
34135f01b1 Added debug information for current calibration (will be moved in the future) 2021-11-13 15:42:46 +01:00
b739244320 Added alias 2021-11-13 15:42:08 +01:00
6643fd7bc4 Added nvs dump (needs some help for profile dumping; 'std::string html;' probably gets to large, otherwise works) 2021-11-13 12:46:24 +01:00
d1b4c72ce6 Moved statusdisplay text so you can read it better 2021-11-13 12:45:25 +01:00
7e9559fde3 Moved helper scripts into tools/ 2021-11-13 12:42:41 +01:00
627c11326b Added old nvs flag for nvs export 2021-11-13 12:40:44 +01:00
cd7f08c147 Readded BAK / 25R cells 2021-11-12 20:04:31 +01:00
faf4083806 Roll out "fixed buttons not working" to cloud 2021-11-12 19:26:54 +01:00
2b0329bcfc fixed buttons not working 2021-11-07 13:04:19 +01:00
9aa407cac9 Merge branch 'cloud' into cloud-branch-rewrite 2021-11-05 20:31:21 +01:00
a9ae7b964e Fixed pluginsystem 2021-11-05 20:12:18 +01:00
362e7e9316 Added BAK/25R battery type 2021-11-03 18:47:34 +01:00
0446a40e62 Merge pull request #119 from bobbycar-graz/rewrite
Move lots of implementations into separate .cpp files
2021-11-02 23:35:22 +01:00
e5b513297b Add mick cloud builds 2021-11-02 23:27:06 +01:00
0428a126f2 fix mick compile 2021-11-02 23:26:28 +01:00
08e97debe7 Fixed compiling 2021-11-02 23:17:10 +01:00
fc1e277423 Refactorings again more 2021-11-02 23:13:43 +01:00
d70a3aa73f Again refactorings more 2021-11-02 22:47:46 +01:00
86a7ef66ee More refactorings again 2021-11-02 18:33:55 +01:00
8dcc898244 Even more refactorings 2021-11-02 16:11:57 +01:00
55fe233ee7 Again more refactorings 2021-11-02 14:18:28 +01:00
316f74ada8 More rewrite 2021-11-02 11:39:36 +01:00
1de44c630b Rewrite 2021-11-02 01:43:58 +01:00
8c2ce911ba country AT 2021-11-01 23:38:12 +01:00
521a8278bf IPv6 achievment unlocked 2021-11-01 23:13:13 +01:00
eba04b7d4d Enable/Disable AP 2021-11-01 22:45:45 +01:00
7a11708d57 Cleanups 2021-11-01 22:22:41 +01:00
5e5a256157 Reverted fix 2021-11-01 21:44:16 +01:00
5bbe3fec89 Merge pull request #118 from bobbycar-graz/multiple_compile_units
Moved sources into separate .cpp files
2021-11-01 20:50:42 +01:00
a3970514b8 Moved sources into separate .cpp files 2021-11-01 20:44:57 +01:00
7e5994812b Removed redownload / cache 2021-11-01 20:17:13 +01:00
d75f226583 Fixed stvo front light for non-centered led strips 2021-11-01 20:02:51 +01:00
fd87c82580 Merge pull request #117 from bobbycar-graz/cloud
Please merge Commanders Changes
2021-11-01 19:12:19 +01:00
345d8e2007 Fix for non-ledstrip users 2021-11-01 18:59:47 +01:00
5c3ad4f891 Color now changeable for 8 sides (#104) 2021-11-01 18:59:47 +01:00
82d63616f1 Added correction for wrong side ledstrip 2021-11-01 18:59:47 +01:00
c3fd0d4d21 Preparations for ledstrip color select menu 2021-11-01 18:59:47 +01:00
88a32fc2ba Added new ledstrip menu and icon 2021-11-01 18:59:47 +01:00
4ae7390d45 Added hybrid mode 2021-11-01 18:59:47 +01:00
1448ed088a If server-url ends with .bin, otaUrl will be set directly to server-url 2021-11-01 18:59:47 +01:00
887c43da27 Added hybrid driving mode options 2021-11-01 18:59:47 +01:00
50e9e13e86 Added blink commands (z&u) 2021-11-01 18:59:47 +01:00
2010b0e2c3 Added colors 2021-11-01 18:59:47 +01:00
f59aea0474 Adjusted spacing 2021-11-01 18:59:46 +01:00
e9d78d8180 Empty variables 2021-11-01 18:59:46 +01:00
be98bf0965 Increased buildserver limit to 5 2021-11-01 18:59:46 +01:00
119ff94a36 Increased main task stack size to avoid crashes until the new config system is implemented 2021-11-01 18:59:46 +01:00
503b109c4d Redownload commit list after server change 2021-11-01 18:59:46 +01:00
6ba8b897db Dont make request every time menu is visited 2021-11-01 18:59:46 +01:00
d7e76c5a0e Fixed url 2021-11-01 18:59:46 +01:00
ea98b02d92 Buildserver is now selectable 2021-11-01 18:59:46 +01:00
bc2b194acb Simplified 2021-11-01 18:59:46 +01:00
4ea080e7f7 Implemented menu 2021-11-01 18:59:46 +01:00
aa9e5b2807 Display current commit hash if ota is enabled 2021-11-01 18:59:46 +01:00
cde4c4601b feedc0de config fix 2021-11-01 18:59:08 +01:00
9c8ccf53cf Update feedc0de config 2021-11-01 18:35:56 +01:00
1200287780 Updated esp-idf 2021-11-01 18:35:47 +01:00
46bbfbbd01 Merge pull request #114 from bobbycar-graz/mick-fix
Fixed compilation for non-ota-users
2021-10-18 18:09:21 +02:00
d2e3b1647d Updated espcpputils 2021-10-18 16:54:59 +02:00
c23fafcc21 Fixed compilation for non-ota-users 2021-10-18 15:52:29 +02:00
ac80e3579d Merge pull request #113 from bobbycar-graz/bug-fixes
Improved performance and usablity
2021-10-18 14:56:29 +02:00
40af304083 rebase fix 2021-10-18 14:50:53 +02:00
7433b3fd7c Kinda implemented build server selection (does not work) 2021-10-18 14:49:13 +02:00
b2b9f97dce Kinda implemented build server selection (does not work) 2021-10-18 14:49:13 +02:00
5c657c20af CAUSING A STACKOVERFLOW 2021-10-18 14:49:11 +02:00
595d0434cf Replaced with template 2021-10-18 14:48:37 +02:00
b07d599dc2 Preparations for build server select 2021-10-18 14:48:37 +02:00
dcdf27118c Coredump 2021-10-18 14:48:37 +02:00
f5bdae6841 It finally crashes! 2021-10-18 14:48:36 +02:00
734486c822 Added coredump for peter 2021-10-18 14:47:00 +02:00
876fc5d173 Added coredump 2021-10-18 14:47:00 +02:00
1674ae47f0 Improved performance and usablity 2021-10-18 14:46:58 +02:00
506e350179 Moved icons into .cpp files 2021-10-18 14:30:21 +02:00
2011d0b802 ifdef typo fix 2021-10-18 14:09:34 +02:00
75377252a4 Updated submodules 2021-10-18 13:56:38 +02:00
b9fa94e45c Add .cpp files 2021-10-18 13:47:43 +02:00
e460f4ff27 Merge pull request #112 from bobbycar-graz/battery-status
Battery status
2021-10-14 22:11:09 +02:00
e7055a8508 fix percent 2021-10-14 21:55:30 +02:00
fa01d2bcbd implement curves 2021-10-14 21:44:28 +02:00
3b270bda3d Added labels 2021-10-14 21:00:01 +02:00
7e7727e180 First steps for discharge curves, calibration can be deactivated now 2021-10-14 20:32:52 +02:00
5dc794b903 Converted int16_t to float 2021-10-14 18:27:08 +02:00
8414769397 dont return 0 in calibrated voltage 2021-10-13 13:46:19 +02:00
2cc1ca6ab7 fix compiling 2021-10-13 12:04:07 +02:00
acb56100d6 Cleanups 2021-10-13 10:13:40 +02:00
63c6322792 Moved calibration in controller object (#111) 2021-10-13 09:50:17 +02:00
abf92f439e Fixed batVoltage value 2021-10-13 09:50:17 +02:00
49138c64f1 Added option to apply calibration, preparations for calibration implementation 2021-10-13 09:50:17 +02:00
9cc69afd5d Voltage Calibration Screen, new battery icon 2021-10-13 09:50:17 +02:00
b3eff31261 Added Wh/km, voltage calibration display and stvo front light switch 2021-10-13 09:50:17 +02:00
f49a8c0a09 Preparation of battery menu 2021-10-13 09:50:17 +02:00
26d91437ae Added new files 2021-10-13 09:50:17 +02:00
a4eed77f33 Added battery icon 2021-10-13 09:50:17 +02:00
d59359ad1a seems like a needed config change for comred (as i found it in several branches already) 2021-10-13 09:50:00 +02:00
83e7c662fa Merge pull request #108 from bobbycar-graz/stvo
Street light update and added a few new animations
2021-10-10 00:43:36 +02:00
8dc5665d5d Forgot merge thingy 2021-10-10 00:30:06 +02:00
2c77b55275 Added led brightness and animation speed 2021-10-10 00:12:41 +02:00
68b2b73434 Merge pull request #105 from bobbycar-graz/simplified
Added simplified mode
2021-10-09 23:50:06 +02:00
ec326e9679 street lightning 2021-10-09 16:19:24 +02:00
0b758da0f0 simplified mode 2021-10-09 15:57:43 +02:00
2e21cc5889 Merge pull request #103 from bobbycar-graz/Led-icon
Added led icon
2021-10-06 21:21:38 +02:00
e6e1e7a747 Added led icon 2021-10-03 22:04:47 +02:00
763ca84ec2 Merge pull request #101 from bobbycar-graz/feature_led_speedsync
add speed sync for led animation
2021-10-01 18:50:02 +02:00
b3849e3059 Merge branch 'master' into feature_led_speedsync 2021-10-01 18:17:21 +02:00
3bff2226c8 change config for comr and feedcode 2021-10-01 18:14:29 +02:00
9b41663096 add speed sync for led animation 2021-10-01 18:01:32 +02:00
ddf5b46603 Merge pull request #98 from bobbycar-graz/blink-styles
Added beep-blink, 6Wire and more
2021-10-01 17:04:14 +02:00
fbb2ba1905 Should fix bug that beeper won't turn off if turning the feature off in ledstrip menu 2021-10-01 15:58:59 +02:00
7c8e416d66 Added beep-blink, 6Wire and more 2021-10-01 14:33:28 +02:00
6bb319155d Merge pull request #96 from bobbycar-graz/momentary-blink-switch
Added 6 Wire and FEATURE_GSCHISSENE_DIODE
2021-09-30 23:23:19 +02:00
f756d48232 Added 6 Wire and FEATURE_GSCHISSENE_DIODE 2021-09-30 23:17:42 +02:00
8bbe39aae7 Merge pull request #94 from bobbycar-graz/blink-beep
Blink beep
2021-09-30 22:37:45 +02:00
d02bb1adff Merge branch 'master' into blink-beep 2021-09-30 22:33:12 +02:00
57bbade3c8 Merge pull request #95 from bobbycar-graz/more-animations
More animations
2021-09-30 22:30:26 +02:00
d20b79d158 improve formatting of config_peter.cmake 2021-09-30 22:29:59 +02:00
99796ab6ac impove led animation switch 2021-09-30 21:56:45 +02:00
53edd82fef Removed dev-define 2021-09-30 21:18:42 +02:00
dfcf841db4 Added optional beep when blinking 2021-09-30 21:03:13 +02:00
21ba6b4d97 separate led blink and animation type 2021-09-30 21:03:06 +02:00
8aacd3d4f8 New animation 2021-09-30 16:45:25 +02:00
684ecc7cdd Standard LED Animation configurable in cmake 2021-09-30 16:45:13 +02:00
65a64e4e2a Preparations for new ledstrip animations 2021-09-30 16:20:09 +02:00
a03f0ffdb9 Merge pull request #90 from bobbycar-graz/feature_ledstrip_brightness_blinker
Feature ledstrip brightness + blinker
2021-09-30 14:41:43 +02:00
069382632e reverse led strip with defines, github action for peters bobbycar 2021-09-30 14:35:46 +02:00
4f9d422d50 merge led defines 2021-09-30 14:29:51 +02:00
4613dc7259 peters config 2021-09-30 14:23:57 +02:00
48f8a2a422 Merge pull request #91 from bobbycar-graz/ledstrip-menu-improvement
Ledstrip menu improvement
2021-09-30 14:23:20 +02:00
0b0e49cf93 Fixed / revert 'Switched left and right' 2021-09-30 14:22:44 +02:00
99f4d916d3 Switched left and right 2021-09-30 14:17:46 +02:00
86ddacaaa2 change blink wrong direction directly to ledstrip.h 2021-09-30 14:12:17 +02:00
fb120aa7f8 Added defines for code quality 2021-09-30 14:09:05 +02:00
0529c85151 Improved animation selection 2021-09-30 14:08:38 +02:00
f7c0b18cc4 bmsdisplay removed string concats 2021-09-30 13:48:49 +02:00
eb82f9d993 feedc0de config updated 2021-09-30 13:48:16 +02:00
3c38348cf2 implement LED strip brightness and blinker 2021-09-30 12:38:21 +02:00
4f185fcd11 peters config 2021-09-30 00:24:43 +02:00
5e355feea9 Merge pull request #83 from bobbycar-graz/smoothfw
Smoothfw
2021-09-23 21:51:45 +02:00
2acac79173 Code style 2021-09-23 21:44:22 +02:00
6fa2286da5 Fixed submodule 2021-09-23 21:34:29 +02:00
e4b3d4cc40 Merge pull request #86 from bobbycar-graz/HEAP_LARGEST
Added optional fix for heaplargesttext
2021-09-23 21:30:03 +02:00
c2e7d8edbf Fixed indents and rename 2021-09-23 21:18:12 +02:00
313db2ad68 fixed crash with invalid format in webserver settings 2021-09-23 21:10:21 +02:00
958194bd2a Added optional fix for heaplargesttext 2021-09-23 21:03:43 +02:00
cd6713ac92 pin type in webserver 2021-09-23 20:42:40 +02:00
49fe597502 Merge pull request #84 from bobbycar-graz/advanced_ble
Control ledstrip animation via ble
2021-09-23 19:55:32 +02:00
f968612a60 change build order 2021-09-23 19:49:24 +02:00
4567eedf0d Merge pull request #85 from bobbycar-graz/restart_reason_is_no_in_the_debug_menu
Restart reason now visible in the debug menu
2021-09-23 19:39:44 +02:00
c29edfb717 Restart reason now visible in the debug menu 2021-09-23 02:47:17 +02:00
0faa86cddd higher cloud data rate 2021-09-21 21:45:20 +02:00
b766bb57db cloud update 2021-09-21 16:49:59 +02:00
9a056f5b64 Control ledstrip animation via ble 2021-09-21 14:50:55 +02:00
91b819a517 fixed inverted currents 2021-09-20 15:54:28 +02:00
6856848112 Fixed naming error 2021-09-20 14:16:37 +02:00
525061f5bc Activated cloud feature 2021-09-20 14:16:25 +02:00
692f3b1f38 cloud protocol updated 2021-09-19 06:32:33 +02:00
d6217492c7 lots of stability improvements 2021-09-19 02:51:16 +02:00
2992cbb613 Lots of improvements of actions 2021-09-19 01:09:05 +02:00
f19e6b8a9e typo in CMakeLists.txt 2021-09-18 21:54:58 +02:00
daaf4365af CI improvements 2021-09-18 21:32:50 +02:00
161abf5ddd Implemented webserver settings and stringSettings 2021-09-18 20:15:06 +02:00
5844af246e implemented webserver settings set 2021-09-18 18:22:32 +02:00
22cb16d3d2 Removed esp_websocket_client.h 2021-09-18 18:20:08 +02:00
c60fa5b7c0 Webserver improvements 2021-09-18 18:02:57 +02:00
cb0c02bc8f Lock screen pin now configurable 2021-09-18 16:17:27 +02:00
444366c00c Update Build Status badge in README.md 2021-09-18 15:20:41 +02:00
08961271a4 Deduplicate using action matrix 2021-09-18 15:08:58 +02:00
df4957db76 fixed wrong number on led animation index text 2021-09-18 04:31:31 +02:00
15a6fc97cd GitHub Actions CI 2021-09-18 04:18:59 +02:00
b3b68e8c7a Added greyhash config 2021-09-17 17:09:13 +02:00
022ac06f44 Removed ledstrip brightness define 2021-09-17 05:12:19 +02:00
defa10c76e add 5wire_2out dpad, peters config 2021-09-17 02:46:00 +02:00
204a45aaa4 comr: switched to 16M chip 2021-09-17 01:12:10 +02:00
71675f68b3 BIG ledstrip update 2021-09-10 21:13:34 +02:00
d3ed93ef5f added menus for ledstrip 2021-09-04 22:44:21 +02:00
872945d089 Fixed nullptr crash 2021-08-26 22:43:55 +02:00
26740ccf86 Merge pull request #81 from bobbycar-graz/comr_wireless_config
Comr wireless config
2021-08-26 22:43:39 +02:00
f0192c27e8 Forgot ifdef 2021-08-26 22:33:41 +02:00
b6f3c4c069 Added helper scripts 2021-08-26 22:33:41 +02:00
fe81facbdb Added script for opening serial monitor 2021-08-26 22:33:41 +02:00
77b6f2f013 Removed IP, adjusted size of jsondocument 2021-08-26 22:33:41 +02:00
25b9716e1f Added wifi list to ble capabilities 2021-08-26 22:33:41 +02:00
43c32d56d5 Removed defines, removed code from handler 2021-08-26 22:33:41 +02:00
ddee574129 Added files to ignore list 2021-08-26 22:33:41 +02:00
e68d8389a2 Updated to meet requirements 2021-08-26 22:33:41 +02:00
63ef389aaa Updated to meet requirements 2021-08-26 22:33:41 +02:00
e46e2b7e01 Added newline for @0xFEEDC0DE64 2021-08-26 22:33:41 +02:00
a1a99bd4cf Cleanup 2021-08-26 22:33:41 +02:00
290531562d Added saveSettings()
Forgot to push settings from RAM to NVS
2021-08-26 22:33:41 +02:00
db3be639df Removed password from debug log 2021-08-26 22:33:41 +02:00
817c144bc2 Added WiFi configuration via BLE 2021-08-26 22:33:41 +02:00
32708cd428 Add mick config 2021-08-25 06:02:36 +02:00
78292a1518 remove source checks, they don't work 2021-08-25 06:00:00 +02:00
d350eddad8 smaller updates 2021-08-21 19:32:44 +02:00
e9d75b973b refactored all the gui code into library 2021-08-20 13:20:02 +02:00
879f4d5767 Moved icon.h into esp-gui-lib 2021-08-18 16:53:32 +02:00
1d2c5d3b67 Implemented basic ledstrip 2021-08-17 22:06:13 +02:00
3570fc03a3 fixed 5wire dpad buttons stuck 2021-08-17 15:27:20 +02:00
d199edade3 improvements 2021-08-17 15:11:13 +02:00
5ceabd378f Implemented NTP 2021-08-12 00:23:41 +02:00
162f95ab13 Implemented time settings 2021-08-11 22:41:37 +02:00
518c4d075d menu overflow implemented and other improvements 2021-08-11 19:58:48 +02:00
4a562d4e48 Feature Garage 2021-08-11 19:26:48 +02:00
12a81c3b5d webserver ota and settings 2021-08-10 22:48:07 +02:00
ca337ce99e OTA implemented 2021-08-10 15:51:26 +02:00
b1f3a59828 Added flag for wireless config 2021-08-10 15:09:02 +02:00
a4b76623ae feature cloud working again 2021-08-10 05:03:50 +02:00
8e3c0b4204 BLE settings added to enable/disable BLE 2021-08-10 04:10:35 +02:00
e559fa8b82 wifi configs in NVS, wifi settings menu texts implemented, lots of other fixes 2021-08-10 03:37:14 +02:00
e88fbfd4a7 wifi scan fixes, new config parameters 2021-08-09 23:15:26 +02:00
1504fc779a lots of smaller fixes 2021-08-09 20:59:58 +02:00
d75db8e18c Added my config 2021-08-09 19:35:04 +02:00
8f47ce7b63 multiple firmware configs at the same time 2021-08-09 14:43:33 +02:00
673f68d2c1 OTA preperations 2021-08-09 12:57:40 +02:00
c52a72f485 Implemented BLE remote control 2021-07-20 23:47:40 +02:00
1bd3979241 BLE remote control preperations and faster livedata 2021-07-20 21:45:00 +02:00
5318554786 tempomat improvements 2021-07-20 20:44:14 +02:00
455f98a4a0 DefaultMode tempomat preperations 2021-07-20 15:58:38 +02:00
589f188b15 Implemented missing features from webserver 2021-07-20 14:52:38 +02:00
c11454ae11 Reconstructing parts of the webserver again 2021-07-20 14:10:26 +02:00
8607ec28c2 lots of new BLE characteristics 2021-07-20 01:40:46 +02:00
5ddbc21969 Implemented BLE for app 2021-07-17 05:10:16 +02:00
5832b18775 Merge pull request #80 from bobbycar-graz/esp-idf-refactoring
Remove platformio and switch to esp-idf
2021-07-16 19:29:48 +02:00
fcf729383e removed .travis.yml 2021-07-16 19:28:36 +02:00
5d75f266bb removed uneeded debug parameters and preparations for tempomat 2021-07-16 19:28:14 +02:00
7bbe705331 StatusDisplay shows wifi status and ip again 2021-06-29 11:10:42 +02:00
4b9ef50d06 Implemented wifi stack with AP 2021-06-29 10:59:44 +02:00
f146deca05 Fixed mac address detection for bobbycar unique identifier 2021-06-28 22:25:50 +02:00
9bdd512057 Switched build system to esp-idf 2021-06-28 21:43:20 +02:00
8d152083aa Added esp-idf submodule 2021-06-28 14:50:40 +02:00
f830579b55 Merge pull request #79 from bobbycar-graz/feature_can
Feature can (and std::string)
2021-06-28 14:40:26 +02:00
27ae2aba21 Fixed compiling of other configurations 2021-06-28 14:38:03 +02:00
56ebbe8055 ADC and button input via can 2021-06-28 14:22:05 +02:00
67ad568de1 FEATURE_CAN vs FEATURE_SERIAL 2021-06-28 10:57:39 +02:00
f93076c97b New protocol namespace 2021-06-28 10:55:50 +02:00
7805059bdf Replaced Arduino Strings with std::string 2021-06-28 09:59:32 +02:00
b0e96933ec Added powersupply menu for huawei 2021-06-28 09:18:02 +02:00
ea3c803c4f Limits menu now shows live values in menu items 2021-06-28 09:17:39 +02:00
db024a298f more types of current 2021-06-26 03:27:49 +02:00
db10a294de feedc0de fixes 2021-05-29 00:00:33 +02:00
ddb4859a3f Updated (merged) protocol 2021-05-23 17:56:29 +02:00
d8945c9726 Update can 2021-05-23 00:44:56 +02:00
1d9995c90f feedc0de config fix 2021-05-22 04:54:54 +02:00
cdaebf06a6 Updated can submodule 2021-05-21 01:05:41 +02:00
4eef349810 CAN finishing work 2021-05-20 21:29:07 +02:00
60a2f2bcaa More implementations 2021-05-16 22:47:35 +02:00
97c68b8779 can implementations 2021-05-16 22:16:33 +02:00
e5871d339e CAN implementation started 2021-05-16 21:51:31 +02:00
873f076f93 Implemented cloud upload of life stat values 2021-02-15 00:25:54 +01:00
799fb1709e New feedc0de defaults 2021-01-31 19:16:14 +01:00
36079863e1 Fixed missing settings 2021-01-31 19:16:03 +01:00
353b9202ea Improved 5wirepad debug 2021-01-31 19:14:40 +01:00
008f973829 Fixed travis build 2021-01-10 03:15:34 +01:00
9a9d9d6d64 Added platformio define for wheel diameter 2021-01-10 02:59:13 +01:00
ebbbe11980 Introduced new gernot config 2021-01-03 15:37:25 +01:00
31aedecfe2 Merge pull request #78 from bobbycar-graz/reduce-code-size
Reduce code size
2021-01-03 03:59:50 +01:00
eb73d564fa Fixed compiling for other configs again 2021-01-03 03:55:58 +01:00
b87a3c5fbc More program space savings by removing menu item interface abstraction 2021-01-03 03:44:15 +01:00
5ae0e6314e Added script to decode exception backtraces 2021-01-03 01:00:15 +01:00
894644001b Reduced memory allocations by wifiscanmenu by reusing removed menu entries from a pool 2021-01-03 00:57:22 +01:00
67bb5554e4 Refactored all menus to use the new ContainerMenuDefinition 2021-01-02 23:52:18 +01:00
4d641974d4 Reducing code size by removing template parameters and falling back to heap usage and vtables 2021-01-02 23:01:00 +01:00
8add1a991a ESPAsyncWebserver library now optional dependency 2021-01-02 22:34:54 +01:00
4109f58fd5 Updated partition tables so that 4M with OTA is possible 2021-01-02 21:39:50 +01:00
fba4b20c62 Merge pull request #77 from bobbycar-graz/esp-async-webserver
Switched to me-no-dev's ESPAsyncWebserver
2021-01-02 20:51:10 +01:00
4453cf5d4c Switched to me-no-dev's ESPAsyncWebserver 2021-01-02 20:43:46 +01:00
19f2d43cf6 Added espcpputils module 2021-01-02 19:48:30 +01:00
a4217a66ea Merge pull request #76 from bobbycar-graz/make-bluetooth-optional
Made bluetooth related features optional to save some storage
2020-11-19 09:27:39 +01:00
19cc525d04 Made bluetooth related features optional to save some storage 2020-11-07 16:57:45 +01:00
0392517c53 Now using gcc hosted on GitHub instead of brunner.ninja 2020-10-29 17:11:52 +01:00
72c57d28d5 Fixed partition table for non ota configurations 2020-10-27 12:11:18 +01:00
38e1137e5e Updated to GCC 8.4.0 and C++17 2020-10-27 10:21:06 +01:00
aad7f96adc Improved BMS display 2020-10-12 23:44:34 +02:00
3768015762 Fixed other configs than feedc0de again 2020-09-23 21:31:00 +02:00
f833496ddf Update platformio.ini 2020-09-22 16:11:30 +02:00
3c609d12ca Merge pull request #75 from bobbycar-graz/74-multiple-profiles
Merge "#74 Implement multiple config profiles"
2020-09-20 05:00:47 +02:00
1f801e5c86 Implemented dpad5wire 2020-09-20 04:53:05 +02:00
cdc154528a Implemented profiles menu 2020-09-19 23:56:24 +02:00
6d20b29c38 Motor inverted presets are now part of platformio.ini 2020-09-19 22:46:49 +02:00
753c55443a Basic multi profile implementation 2020-09-19 21:25:58 +02:00
bcb8b8c601 Updated feedc0de's settings 2020-09-19 20:45:55 +02:00
c5a3a21a9b Merge pull request #73 from bobbycar-graz/make-ota-optional
Make ota optional for some configs
2020-08-09 05:00:39 +02:00
eb85dfc349 Make ota optional for some configs 2020-08-09 04:55:43 +02:00
2cd7b6e448 Correct display driver 2020-08-09 01:40:24 +02:00
9fb12587be Merge pull request #72 from bobbycar-graz/minor-improvements
Minor improvements
2020-06-28 04:45:38 +02:00
83229cd5c1 Added settings toggles to enable / disable gas brems squaring 2020-06-28 04:42:01 +02:00
d21d36585a Refactored code to shrink program size 2020-06-28 04:28:54 +02:00
470eea0dbe Improved menu interfaces for better performance 2020-06-27 20:37:19 +02:00
06d3df0aea Improved presets menu 2020-06-27 20:37:06 +02:00
b3cc352155 Fixed build 2020-06-27 19:13:22 +02:00
0ec141ae3a Minor improvements 2020-06-22 20:20:39 +02:00
3526523d9e Merge pull request #71 from bobbycar-graz/graphs-improvements
Improve graphs
2020-06-14 03:50:47 +02:00
c9ec6fc537 Improved graphs 2020-06-14 03:45:53 +02:00
799604874d Merge pull request #70 from bobbycar-graz/tesla-like-performance-bar
Implement a tesla like performance bar
2020-06-13 04:10:35 +02:00
1a04c71b5e Implemented a tesla like performance bar 2020-06-13 04:06:55 +02:00
69a01f7822 Merge pull request #69 from bobbycar-graz/meters-improvements
Meters refactorings
2020-06-13 01:05:07 +02:00
c3f298bab5 MetersDisplay now shows real values instead of sinus 2020-06-13 01:01:51 +02:00
c899e5922b Refactored vu meter into own widget class 2020-06-12 22:22:52 +02:00
a306cf81ca Refactored vertical meter into own widget class 2020-06-12 20:38:01 +02:00
2abddbe97b Merge pull request #67 from bobbycar-graz/2-calibrate-wizard
Refactored calibrate screen layout
2020-06-11 17:05:12 +02:00
d5ff963143 Implemented security measures 2020-06-11 15:51:44 +02:00
1fc970d4d5 Added change screens for timers settings 2020-06-11 15:09:33 +02:00
ad06ef506f Added timers menu 2020-06-11 14:57:10 +02:00
db4b746743 Introduced settings for time intervals 2020-06-11 14:47:13 +02:00
0af50b64b2 Implemented basic wizard 2020-06-11 03:25:36 +02:00
e34f3d01c1 Refactored calibrate screen layout 2020-06-11 02:46:15 +02:00
24b514e3f3 Merge pull request #43 from bobbycar-graz/gametrak
Gametrak self driving
2020-06-10 11:30:11 +02:00
0198b2a2b0 Merge pull request #66 from bobbycar-graz/controllers-cleanup
Cleanup of controllers
2020-06-08 14:57:08 +02:00
885183c7c8 Cleanup of controllers 2020-06-08 14:51:52 +02:00
2309e6c1a1 Merge pull request #64 from bobbycar-graz/bluetooth-wifi-improvements
Added persistent settings for bluetooth and wifi
2020-06-07 21:49:27 +02:00
8249409339 Implemented settings in WifiSettingsMenu 2020-06-07 19:39:55 +02:00
86da64d500 Added persistent settings for bluetooth and wifi 2020-06-07 19:02:15 +02:00
3a3831b367 Add travis badge 2020-06-07 17:44:17 +02:00
7828b1dff5 Merge pull request #63 from codacy-badger/codacy-badge
Add a Codacy badge to README.md
2020-06-07 17:42:57 +02:00
9fd611817c Add Codacy badge 2020-06-07 15:40:51 +00:00
bb289f6e73 Implemented better control with gametrak 2020-06-07 01:25:19 +02:00
8f96a32b57 Implemented basic self driving behaviour with gametrak 2020-06-07 01:25:19 +02:00
f4ab8c3fbd Merge pull request #62 from bobbycar-graz/48-fullRedraw-fix
Fixed fullRedraw for StatusDisplay and MenuDisplay
2020-06-07 01:22:44 +02:00
1f26fcd3a8 Fixed fullRedraw for StatusDisplay and MenuDisplay 2020-06-07 01:19:21 +02:00
b3b0a8ac72 Merge pull request #61 from bobbycar-graz/softap-improvements
softAp improvements
2020-06-07 01:02:11 +02:00
f07a27b32a AP password is now configured from .ini 2020-06-07 00:59:11 +02:00
89ed8411e4 Added actions to start and stop softAp 2020-06-07 00:38:26 +02:00
815e3367e7 Merge pull request #60 from bobbycar-graz/dpad-debounce-fix
Made debounce respect the configured setting
2020-06-07 00:14:34 +02:00
18e6c49f52 Made debounce respect the configured setting 2020-06-07 00:11:25 +02:00
b38ac72308 Merge pull request #59 from bobbycar-graz/58-configurable-debounce-time
Make debounce time configurable
2020-06-07 00:02:14 +02:00
556185b121 Fixed compiling 2020-06-06 23:59:14 +02:00
afa872fff0 Made debounce time configurable 2020-06-06 23:54:38 +02:00
fb2cafb898 Merge pull request #55 from bobbycar-graz/greyhash-conf
Added @Greyhash-dev ini changes
2020-06-06 23:34:55 +02:00
294c313dd6 Merge pull request #57 from bobbycar-graz/39-debounce-buttons
Debounce dpad buttons
2020-06-06 23:33:57 +02:00
3ec01aad89 Fixed compiling 2020-06-06 23:29:45 +02:00
07d1da1f91 Reduced warnings and reduced debounce time 2020-06-06 23:28:45 +02:00
33692fa054 Implemented basic debounce 2020-06-06 23:20:40 +02:00
8a61f2a803 Introduced types.h and millis_t 2020-06-06 23:09:22 +02:00
6fd97d2ff1 More refactoring 2020-06-06 23:02:44 +02:00
713a714e8b Refactored button code 2020-06-06 21:19:50 +02:00
bd42cb3e9e I added my init 2020-06-06 17:11:24 +02:00
b40ee72e40 Merge pull request #53 from bobbycar-graz/51-unified-model-mode
Add unified model mode
2020-06-05 23:40:46 +02:00
4d0efb7bd9 Implemented new unified model mode 2020-06-05 23:35:24 +02:00
85a3e88876 better wiring docs 2020-06-05 14:15:05 +02:00
c727d2a350 Added docs about switch input wiring 2020-06-05 14:03:23 +02:00
9ed99f6c50 Added unified model mode 2020-06-03 23:26:54 +02:00
dfba798bd7 Merge pull request #52 from bobbycar-graz/50-mode-presets
Added presets for driving modes
2020-06-03 23:15:54 +02:00
7922452f30 Added presets for the remaining driving modes 2020-06-03 23:09:53 +02:00
9444187fb8 Added presets for defaultMode driving mode 2020-06-03 23:03:05 +02:00
745 changed files with 67989 additions and 9510 deletions

66
.clang-format Normal file
View File

@ -0,0 +1,66 @@
# Generated from CLion C/C++ Code Style settings
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: None
AlignOperands: Align
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Always
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterUnion: true
BeforeCatch: false
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
ColumnLimit: 0
CompactNamespaces: false
ContinuationIndentWidth: 8
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Right
ReflowComments: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 0
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseTab: Never

363
.github/workflows/workflow.yml vendored Normal file
View File

@ -0,0 +1,363 @@
name: CI
on:
workflow_dispatch:
push:
release:
types:
- created
# pull_request:
# types: [opened, synchronize, reopened]
jobs:
checkout:
runs-on: ubuntu-latest
name: Checkout (with submodules)
steps:
- name: Cache repository
uses: actions/cache@v2
id: cache-repository
with:
path: repository
key: ${{ runner.os }}-repository-${{ github.sha }}
- name: Checkout (without submodules)
uses: actions/checkout@v2
with:
path: repository
- name: Fast Submodule Checkout esp-idf
uses: 0xFEEDC0DE64/fast_submodule_checkout@main
with:
submodule: esp-idf
repo: repository
- name: Fast Submodule Checkout components/arduino-esp32
uses: 0xFEEDC0DE64/fast_submodule_checkout@main
with:
submodule: components/arduino-esp32
repo: repository
- name: Checkout remaining submodules
run: git -C repository submodule update --init --recursive $(git -C repository submodule | awk '{ if ($2 != "esp-idf" && $2 != "components/arduino-esp32") print $2 }')
checkout-history:
runs-on: ubuntu-latest
name: Checkout (with history and submodules)
steps:
- name: Cache repository
uses: actions/cache@v2
id: cache-repository
with:
path: repository
key: ${{ runner.os }}-repository-history-${{ github.sha }}
- name: Checkout (without submodules)
uses: actions/checkout@v2
with:
path: repository
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Fast Submodule Checkout esp-idf
uses: 0xFEEDC0DE64/fast_submodule_checkout@main
with:
submodule: esp-idf
repo: repository
- name: Fast Submodule Checkout components/arduino-esp32
uses: 0xFEEDC0DE64/fast_submodule_checkout@main
with:
submodule: components/arduino-esp32
repo: repository
- name: Checkout remaining submodules
run: git -C repository submodule update --init --recursive $(git -C repository submodule | awk '{ if ($2 != "esp-idf" && $2 != "components/arduino-esp32") print $2 }')
install-idf:
runs-on: ubuntu-latest
name: Install esp-idf
needs:
- checkout
steps:
- name: Cache repository
uses: actions/cache@v2
id: cache-repository
with:
path: repository
key: ${{ runner.os }}-repository-${{ github.sha }}
- name: Verify that "Cache repostory" had a hit
if: ${{ steps.cache-repository.outputs.cache-hit != 'true' }}
run: exit 1
- name: Get esp-idf release name
id: get-esp-idf-release
uses: 0xFEEDC0DE64/get_latest_tag@main
with:
repo: repository/esp-idf
- name: Cache .espressif
id: cache-espressif
uses: actions/cache@v2
with:
path: ~/.espressif
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
- name: Install .espressif dependencies
if: ${{ steps.cache-espressif.outputs.cache-hit != 'true' }}
run: repository/esp-idf/install.sh
install-sonar-scanner:
runs-on: ubuntu-latest
env:
SONAR_SCANNER_VERSION: 4.4.0.2170
name: Install sonar-scanner
steps:
- name: Cache sonar-scanner
uses: actions/cache@v2
id: cache-sonar-scanner
with:
path: sonar-scanner
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
- name: Download and set up sonar-scanner
env:
SONAR_SCANNER_DOWNLOAD_URL: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${{ env.SONAR_SCANNER_VERSION }}-linux.zip
if: ${{ steps.cache-sonar-scanner.outputs.cache-hit != 'true' }}
run: |
curl -sSLo sonar-scanner.zip ${{ env.SONAR_SCANNER_DOWNLOAD_URL }}
unzip -o sonar-scanner.zip -d sonar-scanner/
echo "$(pwd)/sonar-scanner/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
install-sonar-build-wrapper:
runs-on: ubuntu-latest
name: Install sonar-build-wrapper
steps:
- name: Cache sonar-build-wrapper
uses: actions/cache@v2
id: cache-sonar-build-wrapper
with:
path: sonar-build-wrapper
key: ${{ runner.os }}-sonar-build-wrapper
- name: Download and set up build-wrapper (for Sonar)
env:
BUILD_WRAPPER_DOWNLOAD_URL: https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
if: ${{ steps.cache-sonar-build-wrapper.outputs.cache-hit != 'true' }}
run: |
curl -sSLo build-wrapper-linux-x86.zip ${{ env.BUILD_WRAPPER_DOWNLOAD_URL }}
unzip -o build-wrapper-linux-x86.zip -d sonar-build-wrapper/
echo "$(pwd)/sonar-build-wrapper/build-wrapper-linux-x86" >> $GITHUB_PATH
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [feedc0de, feedc0de_new, comred_new, peter, mick, nofeatures, seatbot]
name: ${{ matrix.node }}
needs:
- checkout
- install-idf
steps:
- name: Cache repository
uses: actions/cache@v2
id: cache-repository
with:
path: repository
key: ${{ runner.os }}-repository-${{ github.sha }}
- name: Verify that "Cache repostory" had a hit
if: ${{ steps.cache-repository.outputs.cache-hit != 'true' }}
run: exit 1
- name: Get esp-idf release name
id: get-esp-idf-release
uses: 0xFEEDC0DE64/get_latest_tag@main
with:
repo: repository/esp-idf
- name: Cache .espressif
id: cache-espressif
uses: actions/cache@v2
with:
path: ~/.espressif
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
- name: Verify that "Cache .espressif" had a hit
if: ${{ steps.cache-espressif.outputs.cache-hit != 'true' }}
run: |
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
exit 1
- name: Setup ccache
uses: 0xFEEDC0DE64/setup_ccache@main
with:
key: ${{ runner.os }}-ccache-${{ matrix.node }}
- name: Unpack ignore folder
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
if: ${{ matrix.node == 'comred' || matrix.node == 'peter' || matrix.node == 'mick' || matrix.node == 'comred_new' }}
run: |
echo Unpacking ignore folder...
cd repository
tools/bobby-decrypt
- name: Build firmware
run: |
cd repository
export CCACHE_MAXSIZE=1024M CCACHE_BASEDIR="$(pwd)"
./esp-idf/install.sh
. export.sh
./switchconf.sh ${{ matrix.node }}
idf.py --ccache build
ccache -s
- name: Set outputs
id: vars
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Upload Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
name: bobbyquad_${{ matrix.node }}
path: |
repository/build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.bin
repository/build_${{ matrix.node }}/bobbyquad_${{ matrix.node }}.elf
build-and-analyze:
runs-on: ubuntu-latest
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
SONAR_SCANNER_VERSION: 4.4.0.2170
SONAR_CACHE_DIR: sonar_cache
name: allfeatures
needs:
- checkout-history
- install-idf
- install-sonar-build-wrapper
- install-sonar-scanner
steps:
- name: Cache repository
uses: actions/cache@v2
id: cache-repository
with:
path: repository
key: ${{ runner.os }}-repository-history-${{ github.sha }}
- name: Verify that "Cache repostory" had a hit
if: ${{ steps.cache-repository.outputs.cache-hit != 'true' }}
run: exit 1
- name: Get esp-idf release name
id: get-esp-idf-release
uses: 0xFEEDC0DE64/get_latest_tag@main
with:
repo: repository/esp-idf
- name: Cache .espressif
id: cache-espressif
uses: actions/cache@v2
with:
path: ~/.espressif
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
- name: Verify that "Cache .espressif" had a hit
if: ${{ steps.cache-espressif.outputs.cache-hit != 'true' }}
run: |
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
exit 1
- name: Cache sonar-scanner
uses: actions/cache@v2
id: cache-sonar-scanner
with:
path: sonar-scanner
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
- name: Verify that "Cache sonar-scanner" had a hit
if: ${{ steps.cache-sonar-scanner.outputs.cache-hit != 'true' }}
run: |
echo "Cache sonar-scanner did not hit? Did the prepare step run successfully?"
exit 1
- name: Cache sonar-build-wrapper
uses: actions/cache@v2
id: cache-sonar-build-wrapper
with:
path: sonar-build-wrapper
key: ${{ runner.os }}-sonar-build-wrapper
- name: Verify that "Cache sonar-build-wrapper" had a hit
if: ${{ steps.cache-sonar-build-wrapper.outputs.cache-hit != 'true' }}
run: |
echo "Cache sonar-build-wrapper did not hit? Did the prepare step run successfully?"
exit 1
- name: Cache sonar-build-wrapper-output
uses: actions/cache@v2
id: cache-sonar-build-wrapper-output
with:
path: repository
key: ${{ runner.os }}-sonar-build-wrapper-output-${{ github.sha }}
- name: Set up JDK 11 (for Sonar)
uses: actions/setup-java@v1
with:
java-version: 11
- name: Setup sonar-build-wrapper
run: echo "$(pwd)/sonar-build-wrapper/build-wrapper-linux-x86" >> $GITHUB_PATH
- name: Setup ccache
uses: 0xFEEDC0DE64/setup_ccache@main
with:
key: ${{ runner.os }}-ccache-allfeatures
- name: Build firmware
run: |
cd repository
export CCACHE_MAXSIZE=1024M CCACHE_BASEDIR="$(pwd)"
./esp-idf/install.sh
. export.sh
./switchconf.sh allfeatures
build-wrapper-linux-x86-64 --out-dir "${{ env.BUILD_WRAPPER_OUT_DIR }}" idf.py --ccache build
ccache -s
- name: Set outputs
id: vars
run: |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Upload Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
name: bobbyquad_allfeatures
path: |
repository/build_allfeatures/bobbyquad_allfeatures.bin
repository/build_allfeatures/bobbyquad_allfeatures.elf
- name: Setup sonar-scanner
run: echo "$(pwd)/sonar-scanner/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
- name: Cache sonar-scanner-cache
uses: 0xFEEDC0DE64/cache-with-update@update-cache-on-cachehit
with:
path: ${{ env.SONAR_CACHE_DIR }}
key: ${{ runner.os }}-sonar-scanner-cache-${{ env.SONAR_SCANNER_VERSION }}
- name: Run sonar-scanner
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
cd repository
sonar-scanner \
--define sonar.host.url="https://sonarcloud.io" \
--define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" \
--define sonar.cfamily.cache.path="../${{ env.SONAR_CACHE_DIR }}"

17
.gitignore vendored
View File

@ -1,2 +1,15 @@
.pio
platformio.pro*
desktop.ini
/build
/build_*
/CMakeLists.txt.user*
/cmake-build-debug
/platformio.pro*
/config.cmake
/sdkconfig
/sdkconfig.old*
/ignore
/.idea
/.ccache
/main/certs/*
/.vscode/*
/ignore.tar.gz

78
.gitmodules vendored
View File

@ -1,3 +1,75 @@
[submodule "src/bobbycar-protocol"]
path = src/bobbycar-protocol
url = git@github.com:bobbycar-graz/bobbycar-protocol.git
[submodule "components/espcpputils"]
path = components/espcpputils
url = ../../0xFEEDC0DE64/espcpputils.git
[submodule "esp-idf"]
path = esp-idf
url = ../../bobbycar-graz/esp-idf.git
[submodule "components/cpputils"]
path = components/cpputils
url = ../../0xFEEDC0DE64/cpputils.git
[submodule "components/cxx-ring-buffer"]
path = components/cxx-ring-buffer
url = ../../0xFEEDC0DE64/cxx-ring-buffer.git
[submodule "components/date"]
path = components/date
url = ../../0xFEEDC0DE64/date.git
[submodule "components/espchrono"]
path = components/espchrono
url = ../../0xFEEDC0DE64/espchrono.git
[submodule "components/ArduinoJson"]
path = components/ArduinoJson
url = ../../0xFEEDC0DE64/ArduinoJson.git
[submodule "components/arduino-esp32"]
path = components/arduino-esp32
url = ../../0xFEEDC0DE64/arduino-esp32.git
[submodule "components/bobbycar-protocol"]
path = components/bobbycar-protocol
url = ../../bobbycar-graz/bobbycar-protocol.git
[submodule "components/fmt"]
path = components/fmt
url = ../../0xFEEDC0DE64/fmt.git
[submodule "components/espwifistack"]
path = components/espwifistack
url = ../../0xFEEDC0DE64/espwifistack.git
[submodule "components/esp-nimble-cpp"]
path = components/esp-nimble-cpp
url = ../../bobbycar-graz/esp-nimble-cpp.git
[submodule "components/espasyncota"]
path = components/espasyncota
url = ../../0xFEEDC0DE64/espasyncota.git
[submodule "components/esphttpdutils"]
path = components/esphttpdutils
url = ../../0xFEEDC0DE64/esphttpdutils.git
[submodule "components/espasynchttpreq"]
path = components/espasynchttpreq
url = ../../0xFEEDC0DE64/espasynchttpreq.git
[submodule "components/FastLED-idf"]
path = components/FastLED-idf
url = ../../0xFEEDC0DE64/FastLED-idf.git
[submodule "components/esp-gui-lib"]
path = components/esp-gui-lib
url = ../../0xFEEDC0DE64/esp-gui-lib.git
[submodule "components/espconfiglib"]
path = components/espconfiglib
url = ../../0xFEEDC0DE64/espconfiglib.git
[submodule "components/QRCode-esp32"]
path = components/QRCode-esp32
url = ../../bobbycar-graz/QRCode-esp32.git
[submodule "components/sunset"]
path = components/sunset
url = ../../bobbycar-graz/sunset.git
[submodule "esp-protocols"]
path = esp-protocols
url = ../../0xFEEDC0DE64/esp-protocols.git
[submodule "components/TFT_eSPI"]
path = components/TFT_eSPI
url = ../../0xFEEDC0DE64/TFT_eSPI.git
[submodule "esp_boost"]
path = esp_boost
url = ../../0xFEEDC0DE64/esp_boost.git
[submodule "components/esptftlib"]
path = components/esptftlib
url = ../../0xFEEDC0DE64/esptftlib.git
[submodule "components/espfontlib"]
path = components/espfontlib
url = ../../0xFEEDC0DE64/espfontlib.git

View File

@ -1,28 +0,0 @@
language: python
python:
- "2.7"
cache:
directories:
- "~/.platformio"
git:
submodules: false
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
install:
- pip install -U platformio
- platformio update
env:
- BUILD_CONFIG=feedc0de_usb
- BUILD_CONFIG=greyhash_usb
- BUILD_CONFIG=aveexy_usb
- BUILD_CONFIG=testbench_usb
- BUILD_CONFIG=mickdermack_usb
- BUILD_CONFIG=peter_usb
script:
- platformio run -e $BUILD_CONFIG

46
CMakeLists.txt Normal file
View File

@ -0,0 +1,46 @@
cmake_minimum_required(VERSION 3.16.3)
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/sdkconfig)
message(FATAL_ERROR "sdkconfig not found (please run ./switchconf.sh)")
endif()
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake)
message(FATAL_ERROR "config.cmake not found (please run ./switchconf.sh)")
endif()
file(READ_SYMLINK ${CMAKE_CURRENT_SOURCE_DIR}/sdkconfig result)
if (result STREQUAL "")
message(FATAL_ERROR "sdkconfig is not a symlink (please run ./switchconf.sh)")
endif()
file(READ_SYMLINK ${CMAKE_CURRENT_SOURCE_DIR}/config.cmake result)
if (result STREQUAL "")
message(FATAL_ERROR "config.cmake is not a symlink (please run ./switchconf.sh)")
endif()
include(config.cmake)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
idf_build_set_property(CXX_COMPILE_OPTIONS -std=gnu++23 APPEND)
set(EXTRA_COMPONENT_DIRS
esp_boost
esp-protocols/components
)
project(${BOBBY_APP_NAME})
set(expected_build_folder "${CMAKE_CURRENT_SOURCE_DIR}/build")
file(READ_SYMLINK "${expected_build_folder}" expected_build_folder_resolved)
if(NOT IS_ABSOLUTE "${expected_build_folder_resolved}")
get_filename_component(dir "${expected_build_folder}" DIRECTORY)
set(expected_build_folder_resolved "${dir}/${expected_build_folder_resolved}")
endif()
if (NOT PROJECT_BINARY_DIR STREQUAL "${expected_build_folder}" AND NOT PROJECT_BINARY_DIR STREQUAL "${expected_build_folder_resolved}")
message(FATAL_ERROR "building in ${PROJECT_BINARY_DIR} is not supported, you have to build in ${expected_build_folder} or ${expected_build_folder_resolved} (please run ./switchconf.sh)")
endif()

View File

@ -1,13 +1,58 @@
# bobbycar-boardcomputer-firmware
## How to clone and compile?
## Build status
```
| Service | Status |
| :--- | ---: |
| Actions (CI) | [![CI](https://github.com/bobbycar-graz/bobbycar-boardcomputer-firmware/actions/workflows/workflow.yml/badge.svg)](https://github.com/bobbycar-graz/bobbycar-boardcomputer-firmware/actions/workflows/workflow.yml) |
| Sonar | [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=bugs)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware)<br />[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=bobbycar-graz_bobbycar-boardcomputer-firmware&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=bobbycar-graz_bobbycar-boardcomputer-firmware) |
## How to clone ? (READ THIS OR YOU WILL FAIL)
```bash
git clone --recursive git@github.com:bobbycar-graz/bobbycar-boardcomputer-firmware.git
cd bobbycar-boardcomputer-firmware/
platformio run --environment bobbycar_usb --target upload
./esp-idf/install.sh
./switchconf.sh feedc0de
```
## How to compile
Also do the initialization if you use an IDE, otherwise build will fail.
```bash
# before you try to build anything, always do this first:
. export.sh
# if needed, switch to the right configuration for your hardware (run with --list to list available configurations)
./switchconf.sh feedc0de
# flash bootloader, partition table and app (only do once)
idf.py -p /dev/ttyUSB0 -b 921600 flash monitor
# flash only app (do this for development as it is much faster)
idf.py -p /dev/ttyUSB0 -b 921600 app-flash monitor
# alternative commands (After '. export.sh')
bobby-build # Builds the firmware
bobby-flash # Flashes the firmware
bobby-app-flash # Just flashes the app partition
bobby-monitor # Opens the serial monitor
bobby-coredump # Opens the coredump-utility
open-ide # Opens qtcreator
```
If you are inside monitor, hit Ctrl+T then Ctrl+X to exit.
Hit Ctrl+T then Ctrl+A to reflash the app and return to monitor (very handy during development)
## How to wire all connections?
![Wiring diagram](/wiring.png)
![Wiring diagram](/img/wiring.png)
### -DFEATURE_DPAD
![dpad switches with 5 wires](/img/dpadsw.png)
### -DFEATURE_DPAD_3WIRESW
![3 wire switches](/img/3wiresw.png)
### -DFEATURE_ROTARY
![rotary encoder](/img/rotary.png)

View File

@ -1,6 +0,0 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x250000,
app1, app, ota_1, 0x260000, 0x250000,
spiffs, data, spiffs, 0x520000, 0x250000,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 0x9000 0x5000
3 otadata data ota 0xe000 0x2000
4 app0 app ota_0 0x10000 0x250000
5 app1 app ota_1 0x260000 0x250000
6 spiffs data spiffs 0x520000 0x250000

View File

@ -1,5 +0,0 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x250000,
spiffs, data, spiffs, 0x260000, 0x1a0000,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 0x9000 0x5000
3 otadata data ota 0xe000 0x2000
4 app0 app ota_0 0x10000 0x250000
5 spiffs data spiffs 0x260000 0x1a0000

1
components/TFT_eSPI Submodule

Submodule components/TFT_eSPI added at 69f86aa4f2

1
components/cpputils Submodule

Submodule components/cpputils added at 96e318fd6d

1
components/date Submodule

Submodule components/date added at b1a75847d5

1
components/espchrono Submodule

Submodule components/espchrono added at eff94f175c

1
components/espfontlib Submodule

Submodule components/espfontlib added at 89048ff162

1
components/esptftlib Submodule

Submodule components/esptftlib added at b779a4c09d

1
components/fmt Submodule

Submodule components/fmt added at 32e16173ce

1
components/sunset Submodule

Submodule components/sunset added at 0520b0945c

View File

@ -0,0 +1,80 @@
set(BOBBY_APP_NAME bobbyquad_allfeatures)
set(BOBBY_DEFAULT_USERNAME allfeatures)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
-DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
-DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=7
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW
# -DPINS_DPAD_5WIRESW_OUT=4
# -DPINS_DPAD_5WIRESW_IN1=5
# -DPINS_DPAD_5WIRESW_IN2=27
# -DPINS_DPAD_5WIRESW_IN3=18
# -DPINS_DPAD_5WIRESW_IN4=19
# -DPINS_DPAD_EXTRASW_IN5=25
-DFEATURE_DPAD_6WIRESW
-DPINS_DPAD_6WIRESW_OUT=4
-DPINS_DPAD_6WIRESW_IN1=5
-DPINS_DPAD_6WIRESW_IN2=27
-DPINS_DPAD_6WIRESW_IN3=18
-DPINS_DPAD_6WIRESW_IN4=19
-DPINS_DPAD_6WIRESW_IN5=26
-DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)

View File

@ -0,0 +1,90 @@
set(BOBBY_APP_NAME bobbyquad_aveexy)
set(BOBBY_DEFAULT_USERNAME aveexy)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW
# -DPINS_DPAD_5WIRESW_OUT=4
# -DPINS_DPAD_5WIRESW_IN1=5
# -DPINS_DPAD_5WIRESW_IN2=27
# -DPINS_DPAD_5WIRESW_IN3=18
# -DPINS_DPAD_5WIRESW_IN4=19
# -DPINS_DPAD_EXTRASW_IN5=25
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
-DDPAD_BOARDCOMPUTER_V2
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT1=19
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT2=5
-DPINS_DPAD_BOARDCOMPUTER_V2_IN1=4
-DPINS_DPAD_BOARDCOMPUTER_V2_IN2=18
-DPINS_DPAD_BOARDCOMPUTER_V2_IN3=27
-DPINS_DPAD_BOARDCOMPUTER_V2_IN4=16
# -DDPAD_BOARDCOMPUTER_V2_DEBUG
)

View File

@ -0,0 +1,87 @@
set(BOBBY_APP_NAME bobbyquad_comred)
set(BOBBY_DEFAULT_USERNAMENAME comred)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW
# -DPINS_DPAD_5WIRESW_OUT=4
# -DPINS_DPAD_5WIRESW_IN1=5
# -DPINS_DPAD_5WIRESW_IN2=27
# -DPINS_DPAD_5WIRESW_IN3=18
# -DPINS_DPAD_5WIRESW_IN4=19
# -DPINS_DPAD_EXTRASW_IN5=25
-DFEATURE_DPAD_6WIRESW
-DPINS_DPAD_6WIRESW_OUT=4
-DPINS_DPAD_6WIRESW_IN1=5
-DPINS_DPAD_6WIRESW_IN2=27
-DPINS_DPAD_6WIRESW_IN3=18
-DPINS_DPAD_6WIRESW_IN4=19
-DPINS_DPAD_6WIRESW_IN5=26
-DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
message(WARNING "Including plugins")
endif()

View File

@ -0,0 +1,94 @@
set(BOBBY_APP_NAME bobbyquad_comred_new)
set(BOBBY_DEFAULT_USERNAME comred_new)
# add_definitions(
# -DUSER_SETUP_LOADED=1
# -DLOAD_GLCD=1
# -DLOAD_FONT2=1
# -DLOAD_FONT4=1
# -DLOAD_FONT7=1
# -DILI9341_DRIVER=1
# -DTFT_MOSI=13
# -DTFT_SCLK=15
# -DTFT_CS=14
# -DTFT_DC=12
# -DTFT_RST=2
# -DSPI_FREQUENCY=40000000
# )
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW
# -DPINS_DPAD_5WIRESW_OUT=4
# -DPINS_DPAD_5WIRESW_IN1=5
# -DPINS_DPAD_5WIRESW_IN2=27
# -DPINS_DPAD_5WIRESW_IN3=18
# -DPINS_DPAD_5WIRESW_IN4=19
# -DPINS_DPAD_EXTRASW_IN5=25
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
-DDPAD_BOARDCOMPUTER_V2
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT1=19
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT2=5
-DPINS_DPAD_BOARDCOMPUTER_V2_IN1=4
-DPINS_DPAD_BOARDCOMPUTER_V2_IN2=18
-DPINS_DPAD_BOARDCOMPUTER_V2_IN3=27
-DPINS_DPAD_BOARDCOMPUTER_V2_IN4=16
# -DDPAD_BOARDCOMPUTER_V2_DEBUG
)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
message(WARNING "Including plugins")
endif()

View File

@ -0,0 +1,64 @@
set(BOBBY_APP_NAME bobbyquad_feedc0de)
set(BOBBY_DEFAULT_USERNAME feedc0de)
set(BOBBYCAR_BUILDFLAGS
# Pins
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
-DPINS_MOSFET0=4
-DPINS_MOSFET1=5
-DPINS_MOSFET2=25
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=26
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
-DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
-DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
# -DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=255
-DDEFAULT_IMOTMAX=40
-DDEFAULT_IDCMAX=42
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
-DFEATURE_DPAD_5WIRESW_2OUT
-DPINS_DPAD_5WIRESW_OUT1=18
-DPINS_DPAD_5WIRESW_OUT2=19
-DPINS_DPAD_5WIRESW_IN1=27
-DPINS_DPAD_5WIRESW_IN2=32
-DPINS_DPAD_5WIRESW_IN3=33
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)

View File

@ -0,0 +1,56 @@
set(BOBBY_APP_NAME bobbyquad_feedc0de)
set(BOBBY_DEFAULT_USERNAME feedc0de)
set(BOBBYCAR_BUILDFLAGS
# Pins
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
-DPINS_MOSFET0=4
-DPINS_MOSFET1=5
-DPINS_MOSFET2=25
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=26
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
-DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
-DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
# -DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
# -DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=255
-DDEFAULT_IMOTMAX=40
-DDEFAULT_IDCMAX=42
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
-DDPAD_BOARDCOMPUTER_V2
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT1=19
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT2=5
-DPINS_DPAD_BOARDCOMPUTER_V2_IN1=4
-DPINS_DPAD_BOARDCOMPUTER_V2_IN2=18
-DPINS_DPAD_BOARDCOMPUTER_V2_IN3=27
-DPINS_DPAD_BOARDCOMPUTER_V2_IN4=16
)

View File

@ -0,0 +1,86 @@
set(BOBBY_APP_NAME bobbyquad_gernot)
set(BOBBY_DEFAULT_USERNAME gernot)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
# -DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=255
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=7
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW_2OUT
# -DPINS_DPAD_5WIRESW_OUT1=18
# -DPINS_DPAD_5WIRESW_OUT2=19
# -DPINS_DPAD_5WIRESW_IN1=4
# -DPINS_DPAD_5WIRESW_IN2=5
# -DPINS_DPAD_5WIRESW_IN3=27
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
message(WARNING "Including plugins")
endif()

View File

@ -0,0 +1,78 @@
set(BOBBY_APP_NAME bobbyquad_greyhash)
set(BOBBY_DEFAULT_USERNAME greyhash)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
-DFEATURE_DPAD_5WIRESW_2OUT
-DPINS_DPAD_5WIRESW_OUT1=5
-DPINS_DPAD_5WIRESW_OUT2=4
-DPINS_DPAD_5WIRESW_IN1=27
-DPINS_DPAD_5WIRESW_IN2=19
-DPINS_DPAD_5WIRESW_IN3=18
# -DDPAD_BOARDCOMPUTER_V2
)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
message(WARNING "Including plugins")
endif()

71
configs/config_mick.cmake Normal file
View File

@ -0,0 +1,71 @@
set(BOBBY_APP_NAME bobbyquad_mick)
set(BOBBY_DEFAULT_USERNAME mick)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
-DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
# -DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=7
-DDEFAULT_FIELDADVMAX=40
# DPAD
-DFEATURE_DPAD_5WIRESW_2OUT
-DPINS_DPAD_5WIRESW_OUT1=5
-DPINS_DPAD_5WIRESW_OUT2=19
-DPINS_DPAD_5WIRESW_IN1=4
-DPINS_DPAD_5WIRESW_IN2=18
-DPINS_DPAD_5WIRESW_IN3=27
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
message(WARNING "Including plugins")
endif()

View File

@ -0,0 +1,81 @@
set(BOBBY_APP_NAME bobbyquad_nofeatures)
set(BOBBY_DEFAULT_USERNAME nofeatures)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
# -DFEATURE_ADC_IN
# -DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
# -DFEATURE_LEDBACKLIGHT
# -DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
# -DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=255
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=7
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW_2OUT
# -DPINS_DPAD_5WIRESW_OUT1=18
# -DPINS_DPAD_5WIRESW_OUT2=19
# -DPINS_DPAD_5WIRESW_IN1=4
# -DPINS_DPAD_5WIRESW_IN2=5
# -DPINS_DPAD_5WIRESW_IN3=27
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)

View File

@ -0,0 +1,86 @@
set(BOBBY_APP_NAME bobbyquad_peter)
set(BOBBY_DEFAULT_USERNAME peter)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
-DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
# -DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=255
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=7
-DDEFAULT_FIELDADVMAX=40
# DPAD
-DFEATURE_DPAD_5WIRESW_2OUT
-DPINS_DPAD_5WIRESW_OUT1=18
-DPINS_DPAD_5WIRESW_OUT2=19
-DPINS_DPAD_5WIRESW_IN1=4
-DPINS_DPAD_5WIRESW_IN2=5
-DPINS_DPAD_5WIRESW_IN3=27
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
# -DDPAD_BOARDCOMPUTER_V2
)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
message(WARNING "Including plugins")
endif()

View File

@ -0,0 +1,79 @@
set(BOBBY_APP_NAME bobbyquad_seatbot)
set(BOBBY_DEFAULT_USERNAME seatbot)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
-DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
-DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
-DFEATURE_DPAD_5WIRESW_2OUT
-DPINS_DPAD_5WIRESW_OUT1=4
-DPINS_DPAD_5WIRESW_OUT2=5
-DPINS_DPAD_5WIRESW_IN1=18
-DPINS_DPAD_5WIRESW_IN2=19
-DPINS_DPAD_5WIRESW_IN3=27
# -DDPAD_BOARDCOMPUTER_V2
)
#if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
# include("${CMAKE_CURRENT_SOURCE_DIR}/ignore/lockscreen_plugin.cmake")
# message(WARNING "Including plugins")
#endif()

View File

@ -0,0 +1,90 @@
set(BOBBY_APP_NAME testdevice)
set(BOBBY_DEFAULT_USERNAME testdevice)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW
# -DPINS_DPAD_5WIRESW_OUT=4
# -DPINS_DPAD_5WIRESW_IN1=5
# -DPINS_DPAD_5WIRESW_IN2=27
# -DPINS_DPAD_5WIRESW_IN3=18
# -DPINS_DPAD_5WIRESW_IN4=19
# -DPINS_DPAD_EXTRASW_IN5=25
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
-DDPAD_BOARDCOMPUTER_V2
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT1=19
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT2=5
-DPINS_DPAD_BOARDCOMPUTER_V2_IN1=4
-DPINS_DPAD_BOARDCOMPUTER_V2_IN2=18
-DPINS_DPAD_BOARDCOMPUTER_V2_IN3=27
-DPINS_DPAD_BOARDCOMPUTER_V2_IN4=16
# -DDPAD_BOARDCOMPUTER_V2_DEBUG
)

View File

@ -0,0 +1,90 @@
set(BOBBY_APP_NAME testdevice2)
set(BOBBY_DEFAULT_USERNAME testdevice2)
add_definitions(
-DUSER_SETUP_LOADED=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT7=1
-DST7789_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=40000000
)
set(BOBBYCAR_BUILDFLAGS
# Pins
-DPINS_GAS=34
-DPINS_BREMS=35
# -DFEATURE_JOYSTICK
# -DPINS_RX1=4
# -DPINS_TX1=5
# -DPINS_RX2=22
# -DPINS_TX2=23
# -DPINS_MOSFET0=18
# -DPINS_MOSFET1=19
# -DPINS_MOSFET2=21
# -DPINS_GAMETRAKX=34
# -DPINS_GAMETRAKY=39
# -DPINS_GAMETRAKDIST=36
-DPINS_LEDBACKLIGHT=23
-DPINS_LEDSTRIP=33
# Config flags
-DFEATURE_ADC_IN
-DFEATURE_CAN
# -DFEATURE_SERIAL
# -DFEATURE_MOSFETS
# -DFEATURE_BLUETOOTH
# -DFEATURE_BMS
# -DFEATURE_GAMETRAK
# -DFEATURE_POWERSUPPLY
-DFEATURE_LEDBACKLIGHT
-DLEDBACKLIGHT_INVERTED
# -DLEDSTRIP_WRONG_DIRECTION
-DHEAP_LRGST_CRASH_TEXT_FIX
# Default values
-DDEFAULT_SWAPSCREENBYTES=false
-DDEFAULT_INVERTFRONTLEFT=false
-DDEFAULT_INVERTFRONTRIGHT=true
-DDEFAULT_INVERTBACKLEFT=false
-DDEFAULT_INVERTBACKRIGHT=true
-DDEFAULT_WHEELDIAMETER=200
-DDEFAULT_IMOTMAX=28
-DDEFAULT_IDCMAX=30
-DDEFAULT_NMOTMAX=2000
-DDEFAULT_FIELDWEAKMAX=17
-DDEFAULT_FIELDADVMAX=40
# DPAD
# -DFEATURE_DPAD_5WIRESW
# -DPINS_DPAD_5WIRESW_OUT=4
# -DPINS_DPAD_5WIRESW_IN1=5
# -DPINS_DPAD_5WIRESW_IN2=27
# -DPINS_DPAD_5WIRESW_IN3=18
# -DPINS_DPAD_5WIRESW_IN4=19
# -DPINS_DPAD_EXTRASW_IN5=25
# -DFEATURE_DPAD_6WIRESW
# -DPINS_DPAD_6WIRESW_OUT=4
# -DPINS_DPAD_6WIRESW_IN1=5
# -DPINS_DPAD_6WIRESW_IN2=27
# -DPINS_DPAD_6WIRESW_IN3=18
# -DPINS_DPAD_6WIRESW_IN4=19
# -DPINS_DPAD_6WIRESW_IN5=26
# -DFEATURE_GSCHISSENE_DIODE
-DDPAD_BOARDCOMPUTER_V2
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT1=19
-DPINS_DPAD_BOARDCOMPUTER_V2_OUT2=5
-DPINS_DPAD_BOARDCOMPUTER_V2_IN1=4
-DPINS_DPAD_BOARDCOMPUTER_V2_IN2=18
-DPINS_DPAD_BOARDCOMPUTER_V2_IN3=27
-DPINS_DPAD_BOARDCOMPUTER_V2_IN4=16
# -DDPAD_BOARDCOMPUTER_V2_DEBUG
)

File diff suppressed because it is too large Load Diff

2282
configs/sdkconfig_aveexy Normal file

File diff suppressed because it is too large Load Diff

2282
configs/sdkconfig_comred Normal file

File diff suppressed because it is too large Load Diff

2280
configs/sdkconfig_comred_new Normal file

File diff suppressed because it is too large Load Diff

2281
configs/sdkconfig_feedc0de Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2280
configs/sdkconfig_gernot Normal file

File diff suppressed because it is too large Load Diff

2282
configs/sdkconfig_greyhash Normal file

File diff suppressed because it is too large Load Diff

2280
configs/sdkconfig_mick Normal file

File diff suppressed because it is too large Load Diff

2280
configs/sdkconfig_nofeatures Normal file

File diff suppressed because it is too large Load Diff

2280
configs/sdkconfig_peter Normal file

File diff suppressed because it is too large Load Diff

2280
configs/sdkconfig_seatbot Normal file

File diff suppressed because it is too large Load Diff

2282
configs/sdkconfig_testdevice Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

15
dependencies.lock Normal file
View File

@ -0,0 +1,15 @@
dependencies:
espressif/esp-idf-cxx:
component_hash: df7921090d6601b268b99b5d54d2f53bb5ea25dbd58cc53961ef7784326621de
source:
service_url: https://api.components.espressif.com/
type: service
version: 1.0.1-beta
idf:
component_hash: null
source:
type: idf
version: 5.2.0
manifest_hash: 04b1e89bb78c4187b4d7bc0cf9461b7a3475762e58fec6f3bb49a885c56532c2
target: esp32
version: 1.0.0

1
esp-idf Submodule

Submodule esp-idf added at 14b365579b

1
esp-protocols Submodule

Submodule esp-protocols added at d38f04b88f

1
esp_boost Submodule

Submodule esp_boost added at 76e5b5075c

56
export.sh Normal file
View File

@ -0,0 +1,56 @@
BOBBY_ROOT="$(dirname "$BASH_SOURCE")"
if [[ ! -f "${BOBBY_ROOT}/esp-idf/export.sh" ]]
then
echo "esp-idf is missing, please check out all needed submodules!"
echo "git submodule update --init --recursive"
return
fi
. ${BOBBY_ROOT}/esp-idf/export.sh
complete -W "$(./switchconf.sh --list)" ./switchconf.sh
complete -W "$(./switchconf.sh --list)" switchconf
BOBBY_INIT_FAILED=
if [[ -e "build" ]] && [[ ! -L "build" ]]
then
echo "ERROR: build folder exists but isnt a symlink!"
BOBBY_INIT_FAILED=1
fi
if [[ -e "sdkconfig" ]]
then
if [[ ! -L "sdkconfig" ]]
then
echo "ERROR: sdkconfig exists but isnt a symlink!"
BOBBY_INIT_FAILED=1
fi
else
echo "ERROR: sdkconfig does not exist"
BOBBY_INIT_FAILED=1
fi
if [[ -e "config.cmake" ]]
then
if [[ ! -L "config.cmake" ]]
then
echo "ERROR: config.cmake exists but isnt a symlink!"
BOBBY_INIT_FAILED=1
fi
else
echo "ERROR: config.cmake does not exist"
BOBBY_INIT_FAILED=1
fi
if [[ ! -z "$BOBBY_INIT_FAILED" ]]
then
echo "run ./switchconf.sh to fix all listed issues"
return
fi
export PATH=$PATH:$(pwd)/tools
alias open-ide=open_ide
alias switchconf=./switchconf.sh
alias bobby-build="idf.py build"

BIN
icons/alert.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

BIN
icons/battery.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

BIN
icons/bms.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
icons/bobbycar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

BIN
icons/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
icons/git.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
icons/greenpass.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

BIN
icons/hardware.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
icons/neopixel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

BIN
icons/shortcircuit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
icons/statistics.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
icons/time.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

BIN
icons/update.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
ignore.tar.gz.gpg Normal file

Binary file not shown.

BIN
img/3wiresw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
img/dpadsw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
img/rotary.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
img/wiring.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

View File

@ -1,39 +0,0 @@
This directory is intended for project header files.
A header file is a file containing C declarations and macro definitions
to be shared between several project source files. You request the use of a
header file in your project source file (C, C++, etc) located in `src` folder
by including it, with the C preprocessing directive `#include'.
```src/main.c
#include "header.h"
int main (void)
{
...
}
```
Including a header file produces the same results as copying the header file
into each source file that needs it. Such copying would be time-consuming
and error-prone. With a header file, the related declarations appear
in only one place. If they need to be changed, they can be changed in one
place, and programs that include the header file will automatically use the
new version when next recompiled. The header file eliminates the labor of
finding and changing all the copies as well as the risk that a failure to
find one copy will result in inconsistencies within a program.
In C, the usual convention is to give header files names that end with `.h'.
It is most portable to use only letters, digits, dashes, and underscores in
header file names, and at most one dot.
Read more about using header files in official GCC documentation:
* Include Syntax
* Include Operation
* Once-Only Headers
* Computed Includes
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html

601
main/CMakeLists.txt Normal file
View File

@ -0,0 +1,601 @@
set(BOBBY_HEADERS
accessorhelpers.h
accessors/globalaccessors.h
accessors/settingsaccessors.h
accessors/wifiaccessors.h
accessors/wifiapconfigaccessors.h
accessors/wifistaconfigaccessors.h
actions/assertaction.h
actions/bluetoothbeginaction.h
actions/bluetoothbeginmasteraction.h
actions/bluetoothconnectbmsaction.h
actions/bluetoothdisconnectaction.h
actions/bluetoothendaction.h
actions/bluetoothflushaction.h
actions/bmsturnoffchargeaction.h
actions/bmsturnoffdischargeaction.h
actions/bmsturnonchargeaction.h
actions/bmsturnondischargeaction.h
actions/dividebyzeroaction.h
actions/erasenvsaction.h
actions/ledstripanimationactions.h
actions/ledstripblinkactions.h
actions/loadsettingsaction.h
actions/modesettingsaction.h
actions/qraction.h
actions/resetnvsaction.h
actions/savesettingsaction.h
actions/setupactions.h
actions/switchprofileaction.h
actions/tempomatmodeapplycurrentpeedaction.h
actions/updateswapfrontbackaction.h
actions/wifiscanaction.h
actions/wifistascanaction.h
actions/wifistascanclearaction.h
battery.h
ble_bobby.h
bletexthelpers.h
bluetooth_bobby.h
bluetoothmode.h
bluetoothtexthelpers.h
bmsutils.h
bobbyblinker.h
bobbybuttons.h
bobbycheckbox.h
bobbyerrorhandler.h
bobbyhupe.h
bobbyquickactions.h
bobbyschedulertask.h
bobbytypesafeenum.h
buildserver.h
can.h
changevaluedisplay_bluetoothmode.h
changevaluedisplay_bobbyquickactions.h
changevaluedisplay_controlmode.h
changevaluedisplay_controltype.h
changevaluedisplay_larsmmode_mode.h
changevaluedisplay_unifiedmodelmode.h
cloud.h
cloudtexthelpers.h
configutils_bobby.h
controller.h
debugcolorhelpers.h
debuginputhandler.h
debugtexthelpers.h
displays/batterygraphdisplay.h
displays/batteryinfodisplay.h
displays/bmsdisplay.h
displays/bobbychangevaluedisplay.h
displays/bobbydisplay.h
displays/bobbydisplaywithtitle.h
displays/bobbygraphdisplay.h
displays/bobbymenudisplay.h
displays/bobbypopupdisplay.h
displays/bobbysplitgraphdisplay.h
displays/calibratevoltagedisplay.h
displays/confiscationdisplay.h
displays/gameoflifedisplay.h
displays/gametrakcalibratedisplay.h
displays/joystickdebugdisplay.h
displays/ledstripcolorsdisplay.h
displays/lockscreen.h
displays/menudisplaywithtime.cpp
displays/menudisplaywithtime.h
displays/menus/aboutmenu.h
displays/menus/batterydebugmenu.h
displays/menus/batterymenu.h
displays/menus/blesettingsmenu.h
displays/menus/bluetoothsettingsmenu.h
displays/menus/bmsmenu.h
displays/menus/boardcomputerhardwaresettingsmenu.h
displays/menus/buzzermenu.h
displays/menus/candebugmenu.h
displays/menus/cloudsettingsmenu.h
displays/menus/commanddebugmenu.h
displays/menus/controllerhardwaresettingsmenu.h
displays/menus/crashmenu.h
displays/menus/debugmenu.h
displays/menus/defaultmodesettingsmenu.h
displays/menus/demosmenu.h
displays/menus/dynamicdebugmenu.h
displays/menus/enablemenu.h
displays/menus/espnowmenu.h
displays/menus/espnowsettingsmenu.h
displays/menus/extrabuttoncalibratemenu.h
displays/menus/featureflagsmenu.h
displays/menus/feedbackdebugmenu.h
displays/menus/gametrakmodesettingsmenu.h
displays/menus/garagemenu.h
displays/menus/gitmenu.h
displays/menus/graphsmenu.h
displays/menus/greenpassmenu.h
displays/menus/handbremssettingsmenu.h
displays/menus/invertmenu.h
displays/menus/larsmmodesettingsmenu.h
displays/menus/ledstripmenu.h
displays/menus/ledstripselectblinkmenu.h
displays/menus/ledstripselectotamode.h
displays/menus/limitssettingsmenu.h
displays/menus/lockscreensettingsmenu.h
displays/menus/mainmenu.h
displays/menus/manageprofilesmenu.h
displays/menus/mickmodesettingsmenu.h
displays/menus/modessettingsmenu.h
displays/menus/mosfetsmenu.h
displays/menus/motorfeedbackdebugmenu.h
displays/menus/motorstatedebugmenu.h
displays/menus/motortestmodesettingsmenu.h
displays/menus/networksettingsmenu.h
displays/menus/otamenu.h
displays/menus/profilesmenu.h
displays/menus/recoverymenu.h
displays/menus/remotecontrolmodesettingsmenu.h
displays/menus/selectbuildserverbranch.h
displays/menus/selectbuildservermenu.h
displays/menus/selectmodemenu.h
displays/menus/selectotabuildmenu.h
displays/menus/settingsmenu.h
displays/menus/setupquickactionsmenu.h
displays/menus/statisticsmenu.h
displays/menus/taskmanagermenu.h
displays/menus/tempomatmodesettingsmenu.h
displays/menus/timersmenu.h
displays/menus/timesettingsmenu.h
displays/menus/typesafeenumchangemenu.h
displays/menus/udpcloudsettingsmenu.h
displays/menus/wifiapclientsmenu.h
displays/menus/wifiapsettingsmenu.h
displays/menus/wifistaconfigentrymenu.h
displays/menus/wifistaconfigsmenu.h
displays/menus/wifistascanentrymenu.h
displays/menus/wifistascanmenu.h
displays/menus/wifistasettingsmenu.h
displays/metersdisplay.h
displays/pingpongdisplay.h
displays/potiscalibratedisplay.h
displays/poweroffdisplay.h
displays/powersupplydisplay.h
displays/qrcodedebug.h
displays/qrdisplay.h
displays/qrimportdisplay.h
displays/rebootscreen.h
displays/setup/ask_calibrate_other_buttons.h
displays/setup/ask_setup_clouds.h
displays/setup/basic_buttons.h
displays/setup/calibrate_potis.h
displays/setup/final_information.h
displays/setup/information.h
displays/setup/setup_cloud.h
displays/speedinfodisplay.h
displays/spirodisplay.h
displays/starfielddisplay.h
displays/statusdisplay.h
displays/updatedisplay.h
displays/xydebugdisplay.h
dnsannounce.h
dpad.h
dpad3wire.h
dpad5wire.h
dpad5wire_2out.h
dpad6wire.h
dpad_boardcomputer_v2.h
drivingstatistics.h
espnowfunctions.h
esptexthelpers.h
feedbackemulator.h
feedbackparser.h
globals.h
handbremse.h
icons/alert.h
icons/battery.h
icons/bluetooth.h
icons/bms.h
icons/bobbycar.h
icons/buzzer.h
icons/close.h
icons/demos.h
icons/git.h
icons/graph.h
icons/greenpass.h
icons/hardware.h
icons/info.h
icons/lock.h
icons/logo.h
icons/modes.h
icons/neopixel.h
icons/poweroff.h
icons/presets.h
icons/reboot.h
icons/scan.h
icons/settings.h
icons/shortcircuit.h
icons/statistics.h
icons/time.h
icons/update.h
icons/wifi.h
ledstrip.h
ledstripdefines.h
macros_bobbycar.h
modeinterface.h
modes.h
modes/defaultmode.h
modes/gametrakmode.h
modes/ignoreinputmode.h
modes/larsmmode.h
modes/mickmode.h
modes/motortestmode.h
modes/remotecontrolmode.h
modes/tempomatmode.h
modes/wheelchairmode.h
mosfets.h
motorpwmlimiter.h
newsettings.h
ota.h
potis.h
presets.h
profilesettings.h
qrimport.h
rotary.h
screens.h
serial_bobby.h
settingspersister.h
settingsutils.h
setup.h
softpwmlimiter.h
statistics.h
statustexthelper.h
taskmanager.h
tempomat.h
texthelpers/networktexthelpers.h
texthelpers/wifiaptexthelpers.h
texthelpers/wifistatexthelpers.h
time_bobbycar.h
types.h
typeutils.h
udpcloud.h
unifiedmodelmode.h
utils.h
webserver.h
webserver_displaycontrol.h
webserver_dumpnvs.h
webserver_lock.h
webserver_newsettings.h
webserver_ota.h
webserver_settings.h
widgets/doubleprogressbar.h
wifi_bobbycar.h
wifiguiutils.h
)
set(BOBBY_SOURCES
accessors/wifistaconfigaccessors.cpp
actions/assertaction.cpp
actions/bluetoothbeginaction.cpp
actions/bluetoothbeginmasteraction.cpp
actions/bluetoothconnectbmsaction.cpp
actions/bluetoothdisconnectaction.cpp
actions/bluetoothendaction.cpp
actions/bluetoothflushaction.cpp
actions/bmsturnoffchargeaction.cpp
actions/bmsturnoffdischargeaction.cpp
actions/bmsturnonchargeaction.cpp
actions/bmsturnondischargeaction.cpp
actions/dividebyzeroaction.cpp
actions/erasenvsaction.cpp
actions/ledstripanimationactions.cpp
actions/ledstripblinkactions.cpp
actions/loadsettingsaction.cpp
actions/modesettingsaction.cpp
actions/qraction.cpp
actions/resetnvsaction.cpp
actions/savesettingsaction.cpp
actions/setupactions.cpp
actions/switchprofileaction.cpp
actions/tempomatmodeapplycurrentpeedaction.cpp
actions/updateswapfrontbackaction.cpp
actions/wifiscanaction.cpp
actions/wifistascanaction.cpp
actions/wifistascanclearaction.cpp
battery.cpp
ble_bobby.cpp
bletexthelpers.cpp
bluetooth_bobby.cpp
bluetoothmode.cpp
bluetoothtexthelpers.cpp
bmsutils.cpp
bobbyblinker.cpp
bobbybuttons.cpp
bobbyerrorhandler.cpp
bobbyhupe.cpp
bobbyquickactions.cpp
buildserver.cpp
can.cpp
changevaluedisplay_bluetoothmode.cpp
changevaluedisplay_bobbyquickactions.cpp
changevaluedisplay_controlmode.cpp
changevaluedisplay_controltype.cpp
changevaluedisplay_larsmmode_mode.cpp
changevaluedisplay_unifiedmodelmode.cpp
cloud.cpp
cloudtexthelpers.cpp
configwrapper_bobby.cpp
controller.cpp
debugcolorhelpers.cpp
debuginputhandler.cpp
debugtexthelpers.cpp
displays/batterygraphdisplay.cpp
displays/batteryinfodisplay.cpp
displays/bmsdisplay.cpp
displays/bobbychangevaluedisplay.cpp
displays/bobbydisplay.cpp
displays/bobbydisplaywithtitle.cpp
displays/bobbygraphdisplay.cpp
displays/bobbymenudisplay.cpp
displays/bobbypopupdisplay.cpp
displays/bobbysplitgraphdisplay.cpp
displays/calibratevoltagedisplay.cpp
displays/confiscationdisplay.cpp
displays/gameoflifedisplay.cpp
displays/gametrakcalibratedisplay.cpp
displays/joystickdebugdisplay.cpp
displays/ledstripcolorsdisplay.cpp
displays/lockscreen.cpp
displays/menus/aboutmenu.cpp
displays/menus/batterydebugmenu.cpp
displays/menus/batterymenu.cpp
displays/menus/blesettingsmenu.cpp
displays/menus/bluetoothsettingsmenu.cpp
displays/menus/bmsmenu.cpp
displays/menus/boardcomputerhardwaresettingsmenu.cpp
displays/menus/buzzermenu.cpp
displays/menus/candebugmenu.cpp
displays/menus/cloudsettingsmenu.cpp
displays/menus/commanddebugmenu.cpp
displays/menus/controllerhardwaresettingsmenu.cpp
displays/menus/crashmenu.cpp
displays/menus/debugmenu.cpp
displays/menus/defaultmodesettingsmenu.cpp
displays/menus/demosmenu.cpp
displays/menus/dynamicdebugmenu.cpp
displays/menus/enablemenu.cpp
displays/menus/espnowmenu.cpp
displays/menus/espnowsettingsmenu.cpp
displays/menus/extrabuttoncalibratemenu.cpp
displays/menus/featureflagsmenu.cpp
displays/menus/feedbackdebugmenu.cpp
displays/menus/gametrakmodesettingsmenu.cpp
displays/menus/garagemenu.cpp
displays/menus/gitmenu.cpp
displays/menus/graphsmenu.cpp
displays/menus/greenpassmenu.cpp
displays/menus/handbremssettingsmenu.cpp
displays/menus/invertmenu.cpp
displays/menus/larsmmodesettingsmenu.cpp
displays/menus/ledstripmenu.cpp
displays/menus/ledstripselectblinkmenu.cpp
displays/menus/ledstripselectotamode.cpp
displays/menus/limitssettingsmenu.cpp
displays/menus/lockscreensettingsmenu.cpp
displays/menus/mainmenu.cpp
displays/menus/manageprofilesmenu.cpp
displays/menus/mickmodesettingsmenu.cpp
displays/menus/modessettingsmenu.cpp
displays/menus/mosfetsmenu.cpp
displays/menus/motorfeedbackdebugmenu.cpp
displays/menus/motorstatedebugmenu.cpp
displays/menus/motortestmodesettingsmenu.cpp
displays/menus/networksettingsmenu.cpp
displays/menus/otamenu.cpp
displays/menus/profilesmenu.cpp
displays/menus/recoverymenu.cpp
displays/menus/remotecontrolmodesettingsmenu.cpp
displays/menus/selectbuildserverbranch.cpp
displays/menus/selectbuildservermenu.cpp
displays/menus/selectmodemenu.cpp
displays/menus/selectotabuildmenu.cpp
displays/menus/settingsmenu.cpp
displays/menus/setupquickactionsmenu.cpp
displays/menus/statisticsmenu.cpp
displays/menus/taskmanagermenu.cpp
displays/menus/tempomatmodesettingsmenu.cpp
displays/menus/timersmenu.cpp
displays/menus/timesettingsmenu.cpp
displays/menus/typesafeenumchangemenu.cpp
displays/menus/udpcloudsettingsmenu.cpp
displays/menus/wifiapclientsmenu.cpp
displays/menus/wifiapsettingsmenu.cpp
displays/menus/wifistaconfigentrymenu.cpp
displays/menus/wifistaconfigsmenu.cpp
displays/menus/wifistascanentrymenu.cpp
displays/menus/wifistascanmenu.cpp
displays/menus/wifistasettingsmenu.cpp
displays/metersdisplay.cpp
displays/pingpongdisplay.cpp
displays/potiscalibratedisplay.cpp
displays/poweroffdisplay.cpp
displays/powersupplydisplay.cpp
displays/qrcodedebug.cpp
displays/qrdisplay.cpp
displays/qrimportdisplay.cpp
displays/rebootscreen.cpp
displays/setup/ask_calibrate_other_buttons.cpp
displays/setup/ask_setup_clouds.cpp
displays/setup/basic_buttons.cpp
displays/setup/calibrate_potis.cpp
displays/setup/final_information.cpp
displays/setup/information.cpp
displays/setup/setup_cloud.cpp
displays/speedinfodisplay.cpp
displays/spirodisplay.cpp
displays/starfielddisplay.cpp
displays/statusdisplay.cpp
displays/updatedisplay.cpp
displays/xydebugdisplay.cpp
dnsannounce.cpp
dpad.cpp
dpad3wire.cpp
dpad5wire.cpp
dpad5wire_2out.cpp
dpad6wire.cpp
dpad_boardcomputer_v2.cpp
drivingstatistics.cpp
espnowfunctions.cpp
esptexthelpers.cpp
feedbackemulator.cpp
feedbackparser.cpp
globals.cpp
handbremse.cpp
icons/alert.cpp
icons/battery.cpp
icons/bluetooth.cpp
icons/bms.cpp
icons/bobbycar.cpp
icons/buzzer.cpp
icons/close.cpp
icons/demos.cpp
icons/git.cpp
icons/graph.cpp
icons/greenpass.cpp
icons/hardware.cpp
icons/info.cpp
icons/lock.cpp
icons/logo.cpp
icons/modes.cpp
icons/neopixel.cpp
icons/poweroff.cpp
icons/presets.cpp
icons/reboot.cpp
icons/scan.cpp
icons/settings.cpp
icons/shortcircuit.cpp
icons/statistics.cpp
icons/time.cpp
icons/update.cpp
icons/wifi.cpp
ledstrip.cpp
ledstripdefines.cpp
macros_bobbycar.cpp
main.cpp
modeinterface.cpp
modes.cpp
modes/defaultmode.cpp
modes/gametrakmode.cpp
modes/ignoreinputmode.cpp
modes/larsmmode.cpp
modes/mickmode.cpp
modes/motortestmode.cpp
modes/remotecontrolmode.cpp
modes/tempomatmode.cpp
modes/wheelchairmode.cpp
mosfets.cpp
motorpwmlimiter.cpp
newsettings.cpp
ota.cpp
potis.cpp
presets.cpp
profilesettings.cpp
qrimport.cpp
rotary.cpp
screens.cpp
serial_bobby.cpp
settingspersister.cpp
settingsutils.cpp
setup.cpp
softpwmlimiter.cpp
statistics.cpp
statustexthelper.cpp
taskmanager.cpp
tempomat.cpp
texthelpers/networktexthelpers.cpp
texthelpers/wifiaptexthelpers.cpp
texthelpers/wifistatexthelpers.cpp
time_bobbycar.cpp
types.cpp
udpcloud.cpp
unifiedmodelmode.cpp
utils.cpp
webserver.cpp
webserver_displaycontrol.cpp
webserver_dumpnvs.cpp
webserver_lock.cpp
webserver_newsettings.cpp
webserver_ota.cpp
webserver_settings.cpp
widgets/doubleprogressbar.cpp
wifi_bobbycar.cpp
wifiguiutils.cpp
)
set(dependencies
freertos nvs_flash esp_http_server esp_https_ota mdns app_update esp_system esp_websocket_client driver esp_adc
arduino-esp32 ArduinoJson esp-nimble-cpp FastLED-idf TFT_eSPI QRCode-esp32
bobbycar-protocol cpputils cxx-ring-buffer date sunset
espasynchttpreq espasyncota espchrono espcpputils espconfiglib esp-gui-lib esphttpdutils espwifistack fmt
)
idf_component_register(
SRCS
${BOBBY_HEADERS}
${BOBBY_SOURCES}
INCLUDE_DIRS
.
REQUIRES
${dependencies}
)
execute_process(COMMAND git rev-parse HEAD
OUTPUT_VARIABLE GIT_REV ERROR_QUIET
)
execute_process(
COMMAND git log -1 --pretty=%B
OUTPUT_VARIABLE GIT_MESSAGE ERROR_QUIET
)
execute_process(
COMMAND git rev-parse --abbrev-ref HEAD
OUTPUT_VARIABLE GIT_BRANCH
)
execute_process(
COMMAND git status --short
OUTPUT_VARIABLE GIT_STATUS
)
if (NOT GIT_STATUS STREQUAL "")
set(GIT_STATUS "dirty")
else()
set(GIT_STATUS "clean")
endif()
string(STRIP "${GIT_REV}" GIT_REV)
string(SUBSTRING "${GIT_REV}" 1 7 GIT_SHORT_REV)
string(STRIP "${GIT_MESSAGE}" GIT_MESSAGE)
string(REPLACE "\n" " " GIT_MESSAGE "${GIT_MESSAGE}")
string(REPLACE "\"" "\\\"" GIT_MESSAGE "${GIT_MESSAGE}")
string(SUBSTRING "${GIT_MESSAGE}" 0 100 GIT_MESSAGE)
string(STRIP "${GIT_BRANCH}" GIT_BRANCH)
message(WARNING "Git revision: ${GIT_REV}")
message(WARNING "Git short revision: ${GIT_SHORT_REV}")
message(WARNING "Git message: ${GIT_MESSAGE}")
message(WARNING "Git branch: ${GIT_BRANCH}")
message(WARNING "Git status: ${GIT_STATUS}")
if(NOT DEFINED BOBBY_DEFAULT_USERNAME)
message(FATAL_ERROR "Please define BOBBY_DEFAULT_USERNAME")
endif()
target_compile_options(${COMPONENT_TARGET}
PRIVATE
-fstack-reuse=all
-fstack-protector-all
-fdiagnostics-color=always
-Wno-unused-function
-Wno-deprecated-declarations
-Wno-missing-field-initializers
-Wno-parentheses
-DGIT_REV="${GIT_REV}"
-DGIT_SHORT_REV="${GIT_SHORT_REV}"
-DGIT_MESSAGE="${GIT_MESSAGE}"
-DGIT_BRANCH="${GIT_BRANCH}"
-DBOBBY_DEFAULT_USERNAME="${BOBBY_DEFAULT_USERNAME}"
${BOBBYCAR_BUILDFLAGS}
)

78
main/accessorhelpers.h Normal file
View File

@ -0,0 +1,78 @@
#pragma once
// system includes
#include <cstdint>
#include <expected>
// 3rdparty lib includes
#include <accessorinterface.h>
// local includes
#include "utils.h"
#include "newsettings.h"
//! Special type of RefAccessor that also saves settings after setValue()
template<typename T>
struct RefAccessorSaveSettings : public virtual espgui::RefAccessor<T>
{
typename espgui::AccessorInterface<T>::setter_result_t setValue(T value) override
{
espgui::RefAccessor<T>::setValue(value);
if (!saveProfileSettings())
return std::unexpected("saveProfileSettings() failed!");
return {};
};
};
template<typename T>
struct NewSettingsAccessor : public virtual espgui::AccessorInterface<T>
{
virtual ConfigWrapper<T>& getConfig() const = 0;
T getValue() const override
{
return getConfig().value();
}
typename espgui::AccessorInterface<T>::setter_result_t setValue(T value) override
{
return configs.write_config(getConfig(), value);
}
};
template<typename T>
struct NewSettingsChronoAdaptorAccessor;
template<>
struct NewSettingsChronoAdaptorAccessor<espchrono::minutes32> : public virtual espgui::AccessorInterface<int32_t>
{
virtual ConfigWrapper<espchrono::minutes32>& getConfig() const = 0;
int32_t getValue() const override
{
return getConfig().value().count();
}
typename espgui::AccessorInterface<int32_t>::setter_result_t setValue(int32_t value) override
{
return configs.write_config(getConfig(), espchrono::minutes32{value});
}
};
template<>
struct NewSettingsChronoAdaptorAccessor<espchrono::milliseconds32> : public virtual espgui::AccessorInterface<int32_t>
{
virtual ConfigWrapper<espchrono::milliseconds32>& getConfig() const = 0;
int32_t getValue() const override
{
return getConfig().value().count();
}
typename espgui::AccessorInterface<int32_t>::setter_result_t setValue(int32_t value) override
{
return configs.write_config(getConfig(), espchrono::milliseconds32{value});
}
};

View File

@ -0,0 +1,12 @@
#pragma once
// local includes
#include "accessorinterface.h"
#include "globals.h"
#include "modes/tempomatmode.h"
struct AvgSpeedAccessor : public espgui::RefAccessor<float> { float &getRef() const override { return avgSpeed; } };
struct AvgSpeedKmhAccessor : public espgui::RefAccessor<float> { float &getRef() const override { return avgSpeedKmh; } };
struct SumCurrentAccessor : public espgui::RefAccessor<float> { float &getRef() const override { return sumCurrent; } };
struct TempomatModeCruiseMotTgtAccessor : public espgui::RefAccessor<int16_t> { int16_t &getRef() const override { return modes::tempomatMode.nCruiseMotTgt; } };

View File

@ -0,0 +1,279 @@
#pragma once
// system includes
#include <expected>
// 3rdparty lib includes
#include <accessorinterface.h>
// local includes
#include "globals.h"
#include "utils.h"
#include "accessorhelpers.h"
#include "newsettings.h"
// Bluetooth
struct BluetoothNameAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.bluetoothName; } };
// Buzzer
struct ReverseBeepAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.reverseBeep; } };
struct ReverseBeepFreq0Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.reverseBeepFreq0; } };
struct ReverseBeepFreq1Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.reverseBeepFreq1; } };
struct ReverseBeepDuration0Accessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.reverseBeepDuration0; } };
struct ReverseBeepDuration1Accessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.reverseBeepDuration1; } };
// Limits
struct IMotMaxAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.limits.iMotMax; } };
struct IDcMaxAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.limits.iDcMax; } };
struct NMotMaxKmhAccessor : public virtual espgui::AccessorInterface<int16_t>
{
int16_t getValue() const override { return convertToKmh(profileSettings.limits.nMotMax); }
espgui::AccessorInterface<int16_t>::setter_result_t setValue(int16_t value) override
{
profileSettings.limits.nMotMax = convertFromKmh(value);
if (!saveProfileSettings())
return std::unexpected("saveProfileSettings() failed!");
return {};
}
};
struct NMotMaxRpmAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.limits.nMotMax; } };
struct FieldWeakMaxAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.limits.fieldWeakMax; } };
struct PhaseAdvMaxAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.limits.phaseAdvMax; } };
// Bluetooth Low Energy
struct BleEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.bleSettings.bleEnabled; } };
struct BleFenceEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.bleSettings.bleFenceEnabled; } };
// Cloud
struct CloudEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.cloudSettings.cloudEnabled; } };
struct CloudTransmitTimeoutAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.cloudSettings.cloudTransmitTimeout; } };
struct CloudSendStatisticsAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.cloudSettings.sendStatistic; } };
struct CloudURLAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.cloudUrl; } };
struct CloudKeyAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.cloudSettings.cloudKey; } };
// Time
//struct TimezoneOffsetAccessor : public NewSettingsAccessor<int32_t> { ConfigWrapper<int32_t> &getConfig() const override { return configs.timezoneOffset; } };
struct TimezoneOffsetAccessor : public NewSettingsChronoAdaptorAccessor<espchrono::minutes32> { ConfigWrapper<espchrono::minutes32> &getConfig() const override { return configs.timezoneOffset; } };
struct DaylightSavingModeAccessor : public NewSettingsAccessor<espchrono::DayLightSavingMode> { ConfigWrapper<espchrono::DayLightSavingMode> &getConfig() const override { return configs.timeDst; } };
struct TimeServerEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.timeServerEnabled; } };
struct TimeServerAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.timeServer; } };
struct TimeSyncModeAccessor : public NewSettingsAccessor<sntp_sync_mode_t> { ConfigWrapper<sntp_sync_mode_t> &getConfig() const override { return configs.timeSyncMode; } };
//struct TimeSyncIntervalAccessor : public NewSettingsAccessor<int32_t> { ConfigWrapper<int32_t> &getConfig() const override { return configs.timeSyncInterval; } };
struct TimeSyncIntervalAccessor : public NewSettingsChronoAdaptorAccessor<espchrono::milliseconds32> { ConfigWrapper<espchrono::milliseconds32> &getConfig() const override { return configs.timeSyncInterval; } };
// Controller Hardware
struct FrontLeftEnabledAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.enableFrontLeft; } };
struct FrontRightEnabledAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.enableFrontRight; } };
struct BackLeftEnabledAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.enableBackLeft; } };
struct BackRightEnabledAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.enableBackRight; } };
struct FrontLeftInvertedAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.invertFrontLeft; } };
struct FrontRightInvertedAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.invertFrontRight; } };
struct BackLeftInvertedAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.invertBackLeft; } };
struct BackRightInvertedAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.controllerHardware.invertBackRight; } };
struct WheelDiameterMmAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.controllerHardware.wheelDiameter; } };
struct WheelDiameterInchAccessor : public virtual espgui::AccessorInterface<float>
{
float getValue() const override { return convertToInch(configs.controllerHardware.wheelDiameter.value()); }
espgui::AccessorInterface<int16_t>::setter_result_t setValue(float value) override
{
// profileSettings.controllerHardware.wheelDiameter = convertFromInch(value);
// if (!saveProfileSettings())
// return std::unexpected("saveProfileSettings() failed!");
// return {};
return configs.write_config(configs.controllerHardware.wheelDiameter, convertFromInch(value));
}
};
struct NumMagnetPolesAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.controllerHardware.numMagnetPoles; } };
struct SwapFrontBackAccessor : public virtual espgui::AccessorInterface<bool> {
bool getValue() const override { return configs.controllerHardware.swapFrontBack.value(); }
setter_result_t setValue(bool value) override
{
const auto err = configs.write_config(configs.controllerHardware.swapFrontBack, value);
#ifdef FEATURE_SERIAL
updateSwapFrontBack();
#endif
return err;
}
};
// CAN
#ifdef FEATURE_CAN
struct SendFrontCanCmdAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.controllerHardware.sendFrontCanCmd; } };
struct SendBackCanCmdAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.controllerHardware.sendBackCanCmd; } };
struct CanTransmitTimeoutAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.controllerHardware.canTransmitTimeout; } };
struct CanReceiveTimeoutAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.controllerHardware.canReceiveTimeout; } };
#endif
// Input devices
struct SampleCountAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.sampleCount; } };
struct GasMinAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.gasMin; } };
struct GasMaxAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.gasMax; } };
struct BremsMinAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.bremsMin; } };
struct BremsMaxAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.bremsMax; } };
#if defined(FEATURE_DPAD) || defined(FEATURE_DPAD_3WIRESW) || defined(FEATURE_DPAD_5WIRESW) || defined(FEATURE_DPAD_5WIRESW_2OUT) || defined (FEATURE_DPAD_6WIRESW) || defined (DPAD_BOARDCOMPUTER_V2)
struct DPadDebounceAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadDebounce; } };
struct ButtonDelayAccessor : public NewSettingsAccessor<uint16_t> { ConfigWrapper<uint16_t> &getConfig() const override { return configs.buttonReadDelay; } };
#endif
#ifdef FEATURE_GAMETRAK
struct GametrakXMinAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.gametrakXMin; } };
struct GametrakXMaxAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.gametrakXMax; } };
struct GametrakYMinAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.gametrakYMin; } };
struct GametrakYMaxAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.gametrakYMax; } };
struct GametrakDistMinAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.gametrakDistMin; } };
struct GametrakDistMaxAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.gametrakDistMax; } };
#endif
struct StatsUpdateRateAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.timersSettings.statsUpdateRate; } };
// Cloud
struct CloudCollectRateAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.timersSettings.cloudCollectRate; } };
struct CloudSendRateAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.timersSettings.cloudSendRate; } };
struct UdpCloudSendIntervalAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.boardcomputerHardware.timersSettings.udpSendRateMs; } };
struct UdpCloudEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.udpCloudSettings.udpCloudEnabled; } };
struct UdpCloudDebugEnableAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.udpCloudSettings.enableCloudDebug; } };
struct UdpCloudHostAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.udpCloudSettings.udpCloudHost; } };
struct UdpCloudPortAccessor : public NewSettingsAccessor<uint16_t> { ConfigWrapper<uint16_t> &getConfig() const override { return configs.udpCloudSettings.udpCloudPort; } };
// DefaultMode
struct DefaultModeModelModeAccessor : public RefAccessorSaveSettings<UnifiedModelMode> { UnifiedModelMode &getRef() const override { return profileSettings.defaultMode.modelMode; } };
struct DefaultModeAllowRemoteControlAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.allowRemoteControl; } };
struct DefaultModeSquareGasAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.squareGas; } };
struct DefaultModeSquareBremsAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.squareBrems; } };
struct DefaultModeEnableSmoothingUpAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.enableSmoothingUp; } };
struct DefaultModeEnableSmoothingDownAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.enableSmoothingDown; } };
struct DefaultModeEnableFieldWeakSmoothingUpAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.enableFieldWeakSmoothingUp; } };
struct DefaultModeEnableFieldWeakSmoothingDownAccessor : public RefAccessorSaveSettings<bool> { bool &getRef() const override { return profileSettings.defaultMode.enableFieldWeakSmoothingDown; } };
struct DefaultModeEnableFieldWeakSmoothingLowerLimitAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.fwSmoothLowerLimit; } };
struct DefaultModeSmoothingAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.smoothing; } };
struct DefaultModeFrontPercentageAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.frontPercentage; } };
struct DefaultModeBackPercentageAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.backPercentage; } };
struct DefaultModeAddSchwelleAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.add_schwelle; } };
struct DefaultModeGas1WertAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.gas1_wert; } };
struct DefaultModeGas2WertAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.gas2_wert; } };
struct DefaultModeBrems1WertAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.brems1_wert; } };
struct DefaultModeBrems2WertAccessor : public RefAccessorSaveSettings<int16_t> { int16_t &getRef() const override { return profileSettings.defaultMode.brems2_wert; } };
// TempomatMode
struct TempomatModeModelModeAccessor : public RefAccessorSaveSettings<UnifiedModelMode> { UnifiedModelMode &getRef() const override { return profileSettings.tempomatMode.modelMode; } };
// LarsmMode
struct LarsmModeModelModeAccessor : public RefAccessorSaveSettings<UnifiedModelMode> { UnifiedModelMode &getRef() const override { return profileSettings.larsmMode.modelMode; } };
struct LarsmModeModeAccessor : public RefAccessorSaveSettings<LarsmModeMode> { LarsmModeMode &getRef() const override { return profileSettings.larsmMode.mode; } };
struct LarsmModeIterationsAccessor : public RefAccessorSaveSettings<uint8_t> { uint8_t &getRef() const override { return profileSettings.larsmMode.iterations; } };
// MotortestMode
struct MotortestModeMultiplikatorAccessor : public RefAccessorSaveSettings<uint8_t> { uint8_t &getRef() const override { return profileSettings.motortestMode.multiplikator; } };
struct MotortestMaxPwmAccessor : public RefAccessorSaveSettings<uint16_t> { uint16_t &getRef() const override { return profileSettings.motortestMode.maxPwm; } };
// MickMode
struct MickModeModelModeAccessor : public RefAccessorSaveSettings<UnifiedModelMode> { UnifiedModelMode &getRef() const override { return profileSettings.mickMode.modelMode; } };
struct MickModeSmoothingAccessor : public RefAccessorSaveSettings<uint16_t> { uint16_t &getRef() const override { return profileSettings.mickMode.smoothing; } };
// Remote Control Mode
struct RemoteControlModeModelModeAccessor : public RefAccessorSaveSettings<UnifiedModelMode> { UnifiedModelMode &getRef() const override { return profileSettings.remoteControlMode.modelMode; } };
// Ledstrip
struct EnableLedAnimationAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableLedAnimation; } };
struct EnableBrakeLightsAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableBrakeLights; } };
struct LedsCountAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.ledsCount; } };
struct CenterOffsetAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.centerOffset; } };
struct SmallOffsetAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.smallOffset; } };
struct BigOffsetAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.bigOffset; } };
struct LedStripMaxMilliampsAccessor : public NewSettingsAccessor<uint32_t> { ConfigWrapper<uint32_t> &getConfig() const override { return configs.ledstrip.maxMilliamps; } };
struct LedStripMaxAmpereAccessor : public virtual espgui::AccessorInterface<float>
{
float getValue() const override
{
return configs.ledstrip.maxMilliamps.value() / 1000.f;
}
espgui::AccessorInterface<float>::setter_result_t setValue(float value) override
{
return configs.write_config(configs.ledstrip.maxMilliamps, value * 1000);
}
};
struct EnableBeepWhenBlinkAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableBeepWhenBlink; } };
struct EnableFullBlinkAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableFullBlink; } };
struct EnableLedstripStVOAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableStVO; } };
struct LedsStVOFrontOffsetAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.stvoFrontOffset; } };
struct LedsStVOFrontLengthAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.stvoFrontLength; } };
struct EnableLedstripStVOFrontlight : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.stvoFrontEnable; } };
struct AnimationMultiplierAccessor : public NewSettingsAccessor<int16_t> { ConfigWrapper<int16_t> &getConfig() const override { return configs.ledstrip.animationMultiplier; } };
struct LedstripBrightnessAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.ledstrip.brightness; } };
struct LedstripEnableBlinkAnimationAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableAnimBlink; } };
struct LedstripOtaAnimationAccessor : public NewSettingsAccessor<OtaAnimationModes> { ConfigWrapper<OtaAnimationModes> &getConfig() const override { return configs.ledstrip.otaMode; } };
struct LedstripEnableVisualizeBlinkAnimationAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.enableVisualizeBlink; } };
struct LedstripAutomaticLightAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.automaticLight; } };
struct LedstripBrakeLightUseAccelAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.brakeLights_useAccel; } };
struct LedstripBrakeLightUsePowerAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.ledstrip.brakeLights_usePower; } };
// Battery
struct BatterySeriesCellsAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.battery.cellsSeries; } };
struct BatteryParallelCellsAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.battery.cellsParallel; } };
struct BatteryWHperKMAccessor : public NewSettingsAccessor<uint16_t> { ConfigWrapper<uint16_t> &getConfig() const override { return configs.battery.watthoursPerKilometer; } };
struct BatteryApplyCalibrationAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.battery.applyCalibration; } };
// Lockscreen
struct LockscreenAllowPresetSwitchAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.lockscreen.allowPresetSwitch; } };
template<uint8_t index>
struct LockscreenPinDigitAccessor : public NewSettingsAccessor<int8_t> { ConfigWrapper<int8_t> &getConfig() const override { return configs.lockscreen.pin[index]; } };
struct LockscreenKeepLockedAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.lockscreen.keepLockedAfterReboot; } };
// Handbremse
struct HandbremsEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.handbremse.enable; } };
struct HandbremsModeAccessor : public NewSettingsAccessor<HandbremseMode> { ConfigWrapper<HandbremseMode> &getConfig() const override { return configs.handbremse.mode; } };
struct HandbremsTimeoutAccessor : public NewSettingsAccessor<uint16_t> { ConfigWrapper<uint16_t> &getConfig() const override { return configs.handbremse.triggerTimeout; } };
struct HandbremsAutomaticAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.handbremse.automatic; } };
struct HandbremsVisualizeAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.handbremse.visualize; } };
// ESP Now
struct ESPNowSyncTimeEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.espnow.syncTime; } };
struct ESPNowSyncTimeWithOthersEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.espnow.syncTimeWithOthers; } };
struct ESPNowSyncBlinkEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.espnow.syncBlink; } };
// Button Mapping accessors
struct ButtonLeftAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingLeft; } };
struct ButtonRightAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingRight; } };
struct ButtonUpAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingUp; } };
struct ButtonDownAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingDown; } };
struct ButtonLeft2Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingLeft2; } };
struct ButtonRight2Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingRight2; } };
struct ButtonUp2Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingUp2; } };
struct ButtonDown2Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingDown2; } };
struct ButtonProfile0Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingProfile0; } };
struct ButtonProfile1Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingProfile1; } };
struct ButtonProfile2Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingProfile2; } };
struct ButtonProfile3Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingProfile3; } };
struct ButtonExtra1Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingExtra1; } };
struct ButtonExtra2Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingExtra2; } };
struct ButtonExtra3Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingExtra3; } };
struct ButtonExtra4Accessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.dpadMappingExtra4; } };
// Can
struct CanResetOnErrorAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.canResetOnError; } };
struct CanReinstallDriverAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.canUninstallOnReset; } };
// Quick Actions
struct QuickActionLeft2Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionLeft2; } };
struct QuickActionRight2Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionRight2; } };
struct QuickActionUp2Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionUp2; } };
struct QuickActionDown2Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionDown2; } };
struct QuickActionExtra1Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionExtra1; } };
struct QuickActionExtra2Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionExtra2; } };
struct QuickActionExtra3Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionExtra3; } };
struct QuickActionExtra4Accessor : public NewSettingsAccessor<BobbyQuickActions> { ConfigWrapper<BobbyQuickActions> &getConfig() const override { return configs.quickActionExtra4; } };
// boardcomputer-hardware
struct FlipScreenAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.boardcomputerHardware.flipScreen; } };
// Other
struct AnhaengerIdAccessor : public NewSettingsAccessor<uint16_t> { ConfigWrapper<uint16_t> &getConfig() const override { return configs.anhaenger_id; } };
struct UsernameAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.otaUsername; } };

View File

@ -0,0 +1 @@
#include "wifiaccessors.h"

View File

@ -0,0 +1,4 @@
#pragma once
// local includes
#include "accessorinterface.h"

View File

@ -0,0 +1,15 @@
#pragma once
// local includes
#include "accessorhelpers.h"
#include "newsettings.h"
struct WifiApEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.wifiApEnabled; } };
//struct WifiApDisableWhenOnlineAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.wifiDisableApWhenOnline; } };
struct WifiApSsidAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.wifiApName; } };
struct WifiApKeyAccessor : public NewSettingsAccessor<std::string> { ConfigWrapper<std::string> &getConfig() const override { return configs.wifiApKey; } };
struct WifiApIpAccessor : public NewSettingsAccessor<wifi_stack::ip_address_t> { ConfigWrapper<wifi_stack::ip_address_t> &getConfig() const override { return configs.wifiApIp; } };
struct WifiApMaskAccessor : public NewSettingsAccessor<wifi_stack::ip_address_t> { ConfigWrapper<wifi_stack::ip_address_t> &getConfig() const override { return configs.wifiApMask; } };
struct WifiApChannelAccessor : public NewSettingsAccessor<uint8_t> { ConfigWrapper<uint8_t> &getConfig() const override { return configs.wifiApChannel; } };
struct WifiApAuthmodeAccessor : public NewSettingsAccessor<wifi_auth_mode_t> { ConfigWrapper<wifi_auth_mode_t> &getConfig() const override { return configs.wifiApAuthmode; } };
struct WiFiApHiddenAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.wifiApHidden; } };

View File

@ -0,0 +1,3 @@
#include "wifistaconfigaccessors.h"

View File

@ -0,0 +1,107 @@
#pragma once
#include "sdkconfig.h"
// system includes
#include <string>
// 3rdparty lib includes
#include <accessorinterface.h>
#include <espwifiutils.h>
// local includes
#include "newsettings.h"
#include "accessorhelpers.h"
struct WifiStaEnabledAccessor : public NewSettingsAccessor<bool> { ConfigWrapper<bool> &getConfig() const override { return configs.wifiStaEnabled; } };
struct WifiStaMinRssiAccessor : public NewSettingsAccessor<int8_t> { ConfigWrapper<int8_t> &getConfig() const override { return configs.wifiStaMinRssi; } };
class WifiStaConfigSsidAccessor : public virtual NewSettingsAccessor<std::string>
{
public:
WifiStaConfigSsidAccessor(int index) : m_index{index} {}
ConfigWrapper<std::string>& getConfig() const override { return configs.wifi_configs[m_index].ssid; }
private:
const int m_index;
};
class WifiStaConfigKeyAccessor : public virtual NewSettingsAccessor<std::string>
{
public:
WifiStaConfigKeyAccessor(int index) : m_index{index} {}
ConfigWrapper<std::string>& getConfig() const override { return configs.wifi_configs[m_index].key; }
private:
const int m_index;
};
class WifiStaConfigUseStaticIpAccessor : public virtual NewSettingsAccessor<bool>
{
public:
WifiStaConfigUseStaticIpAccessor(int index) : m_index{index} {}
ConfigWrapper<bool>& getConfig() const override { return configs.wifi_configs[m_index].useStaticIp; }
private:
const int m_index;
};
class WifiStaConfigStaticIpAccessor : public virtual NewSettingsAccessor<wifi_stack::ip_address_t>
{
public:
WifiStaConfigStaticIpAccessor(int index) : m_index{index} {}
ConfigWrapper<wifi_stack::ip_address_t>& getConfig() const override { return configs.wifi_configs[m_index].staticIp; }
private:
const int m_index;
};
class WifiStaConfigStaticSubnetAccessor : public virtual NewSettingsAccessor<wifi_stack::ip_address_t>
{
public:
WifiStaConfigStaticSubnetAccessor(int index) : m_index{index} {}
ConfigWrapper<wifi_stack::ip_address_t>& getConfig() const override { return configs.wifi_configs[m_index].staticSubnet; }
private:
const int m_index;
};
class WifiStaConfigStaticGatewayAccessor : public virtual NewSettingsAccessor<wifi_stack::ip_address_t>
{
public:
WifiStaConfigStaticGatewayAccessor(int index) : m_index{index} {}
ConfigWrapper<wifi_stack::ip_address_t>& getConfig() const override { return configs.wifi_configs[m_index].staticGateway; }
private:
const int m_index;
};
class WifiStaConfigUseStaticDnsAccessor : public virtual NewSettingsAccessor<bool>
{
public:
WifiStaConfigUseStaticDnsAccessor(int index) : m_index{index} {}
ConfigWrapper<bool>& getConfig() const override { return configs.wifi_configs[m_index].useStaticDns; }
private:
const int m_index;
};
class WifiStaConfigStaticDns0Accessor : public virtual NewSettingsAccessor<wifi_stack::ip_address_t>
{
public:
WifiStaConfigStaticDns0Accessor(int index) : m_index{index} {}
ConfigWrapper<wifi_stack::ip_address_t>& getConfig() const override { return configs.wifi_configs[m_index].staticDns0; }
private:
const int m_index;
};
class WifiStaConfigStaticDns1Accessor : public virtual NewSettingsAccessor<wifi_stack::ip_address_t>
{
public:
WifiStaConfigStaticDns1Accessor(int index) : m_index{index} {}
ConfigWrapper<wifi_stack::ip_address_t>& getConfig() const override { return configs.wifi_configs[m_index].staticDns1; }
private:
const int m_index;
};
class WifiStaConfigStaticDns2Accessor : public virtual NewSettingsAccessor<wifi_stack::ip_address_t>
{
public:
WifiStaConfigStaticDns2Accessor(int index) : m_index{index} {}
ConfigWrapper<wifi_stack::ip_address_t>& getConfig() const override { return configs.wifi_configs[m_index].staticDns2; }
private:
const int m_index;
};

View File

@ -0,0 +1,9 @@
#include "assertaction.h"
// system includes
#include <cassert>
void AssertAction::triggered()
{
assert(0);
}

View File

@ -0,0 +1,10 @@
#pragma once
// 3rdparty lib includes
#include "actioninterface.h"
class AssertAction : public virtual espgui::ActionInterface
{
public:
void triggered() override;
};

View File

@ -0,0 +1,16 @@
#include "bluetoothbeginaction.h"
// local includes
#include "globals.h"
#include "newsettings.h"
#ifdef FEATURE_BLUETOOTH
void BluetoothBeginAction::triggered()
{
if (!bluetoothSerial.begin(configs.bluetoothName.value.c_str()))
{
//Serial.println("Could not begin bluetooth");
// TODO: better error handling
}
}
#endif

View File

@ -0,0 +1,12 @@
#pragma once
// 3rdparty lib includes
#include <actioninterface.h>
#ifdef FEATURE_BLUETOOTH
class BluetoothBeginAction : public virtual espgui::ActionInterface
{
public:
void triggered() override;
};
#endif

Some files were not shown because too many files have changed in this diff Show More