Commit Graph

510 Commits

Author SHA1 Message Date
lorow
b2d7abe954 Add basic toRepresentation serialization methods for config elements 2022-10-25 00:25:58 +02:00
lorow
4baf7a89c4 Remove unused API methods, fix missing pinout issues, fix OTA not having a password set up correctly, fix missing default password in platformio file 2022-10-16 20:07:23 +02:00
Lorow
adb7853c71 Fix default values for camera config, fix brightness setting affecting brightness instead of acg_gain 2022-10-02 21:32:45 +02:00
Lorow
ce8b27dee4 Fix MDNS not starting properly and always having the same service name 2022-10-02 18:49:05 +02:00
ZanzyTHEbar
86084ecd06 update
- basic formatting
2022-09-26 13:40:59 +01:00
ZanzyTHEbar
1c324fc0ac update
- fix pattern struct assignment to be discrete per method
2022-09-25 14:17:05 +01:00
ZanzyTHEbar
69d2666f20 Update
- Added LED debugging to cameraHandler setup method
2022-09-25 13:38:03 +01:00
ZanzyTHEbar
e3de6584f1 update
- add the last remaining states to the map
2022-09-25 13:27:57 +01:00
ZanzyTHEbar
803eea15c2 update
- update LEDManager blink method to use the ledStateMap
- update handleLED method to turn the LED off on an incorrect state-match
2022-09-25 13:25:48 +01:00
ZanzyTHEbar
40ca34c382 update
- Add one new state to LEDStates enum
- Added proper lookup-table based state mapping for led states
- created a handleLED method to call in the loop
2022-09-25 13:12:03 +01:00
ZanzyTHEbar
335abd1de8 update
- Optimizing StateManager
- Create LEDStates enum
- Migrate entire project to StateManager
2022-09-25 11:54:57 +01:00
ZanzyTHEbar
6f68b45704 Update
- fix bug in my_delay function
- edit LEDManager to handle blocking and non-blocking methods
2022-09-25 10:49:38 +01:00
ZanzyTHEbar
4ad516eb77 update
- Added a comment about the elseif chains
2022-09-20 12:12:59 +01:00
ZanzyTHEbar
f7f629240b update
- Add brightness to API
2022-09-20 12:10:16 +01:00
ZanzyTHEbar
94d5872e99 update
- Added CameraConfig_t struct to the initStruct method
- initialized with default values
- Added brightness setting
2022-09-20 11:50:25 +01:00
ZanzyTHEbar
2b745a3d1d update
- return optimize the cameraHandler.cpp methods to remove needless if-else checking
2022-09-20 10:24:40 +01:00
Lorow
01f04fee86 Refactor camera to that it's initialization is signal based, depending on config loading successfully 2022-09-19 23:49:37 +02:00
Lorow
490b1ea6c2 Fix subject calling the base update() method instead of the derived one on notify 2022-09-16 22:20:47 +02:00
ZanzyTHEbar
3c1f3312e7 update
- Fix potential bug in config read and write after 10 iterations through the for loop
2022-09-13 17:24:56 +01:00
ZanzyTHEbar
9b965c224b update
- Re-write bool cast for restartCamera method
- Removed preferencesapi library - no longer needed
2022-09-13 17:13:29 +01:00
ZanzyTHEbar
35d615e96c update
- add support or Git tags in the firmware name
2022-09-10 18:06:38 +01:00
ZanzyTHEbar
711905a1f4 large update
- Added auto-versioning system to firmware name
- Formatted ini file
- setup OTA enabled state to be controllable by the user
2022-09-10 17:25:29 +01:00
ZanzyTHEbar
3f0c0dfee5 update
- Add min_spiffs.csv as default partition table
2022-09-10 15:33:46 +01:00
ZanzyTHEbar
1b90d77f73 minor update
- comment out build_unflags to allow optimization for size by default
- fix last commit build error
- format ini file to be more readable
2022-09-10 15:29:34 +01:00
ZanzyTHEbar
daf44c7e71 update
- Disabled build_partitions by default
to allow for out-of-box OTA support
- Added -O2 build flag to optimize
for speed
- added comments on build flags
to explain what they do
2022-09-10 15:05:32 +01:00
ZanzyTHEbar
dcaefbccac Major Update
- Added proper Automated naming scheme for firmware files.
Looks awesome now :)
- changed "easynetwork" to "openiris" in project_config.cpp
2022-09-09 22:49:11 +01:00
ZanzyTHEbar
30067f7648 update
- Fully deprecate API_Utilities
- Move shaEncoder method to Network_Utilities namespace
- Delete API_Utilities
2022-09-09 11:41:10 +01:00
ZanzyTHEbar
35f61436ab Major Update
- Remove unneeded `data` folder at root of project
- Deprecate API_Utilities class (kept only for the shaEncoder function)
- Begin migration to better organization
2022-09-08 16:01:52 +01:00
ZanzyTHEbar
9a8ff6659a update
- Remove CMake files
2022-09-08 13:54:08 +01:00
Lorow
6a33cb450d Simplify baseAPI - replace calls to projectManager through hardware managers with a pointer to said manager
Fix a bug - saving camera settings was triggering networksConfigUpdated event

Hookup camera update

TODO:
- simplify APi utilities - consider replacing inheritance with composition
- Add brightness control setting to API
2022-09-08 00:38:09 +02:00
ZanzyTHEbar
4eac69a986 minor update
- Fix long long issue with my_delay
Timer was taking longer than anticipated.
2022-09-05 23:04:20 +01:00
ZanzyTHEbar
c040f10b1b minor update
- formatting
2022-09-05 22:56:56 +01:00
Lorow
dd5c6454a6 Update comments with explanation as to why we're setting false to loaded networks
add printing of the stream address
2022-09-05 23:38:25 +02:00
ZanzyTHEbar
27ece435cd Revert "Large Update"
This reverts commit 4812ba5f35.
2022-09-05 13:46:42 +01:00
ZanzyTHEbar
4812ba5f35 Large Update
- Clean up main
- Change handling of APIServer start & StreamServer start
to the WiFiHandler
- Call the setupWifi in the WiFiHandler begin method
- Remove WiFiHandler from APIServer and pass in ProjectConfig directly
2022-09-05 13:11:59 +01:00
ZanzyTHEbar
f23c477315 update
- Remove debug_mode option in favour of setting it in the proper environment.
- Now, the user does nothing but pick the environment
2022-09-05 12:43:22 +01:00
ZanzyTHEbar
6217195248 update
- Added debug-mode support
- to disable DebugOutput change debug_mode to 0
2022-09-05 12:37:57 +01:00
ZanzyTHEbar
e4dc25a2a6 update
- remove delay() method and change with my_delay
- my_delay is a for loop that counts down
2022-09-05 12:30:36 +01:00
ZanzyTHEbar
4987144a96 update
- fix minor formatting
2022-09-02 01:08:24 +01:00
ZanzyTHEbar
622ea32fd8 update
- disable turning off the brownout-detector. Was added for personal debugging
no longer needed
2022-09-02 01:05:08 +01:00
ZanzyTHEbar
36162d5d86 update
- make Logo printASCII function inline
2022-09-01 23:01:30 +01:00
ZanzyTHEbar
d965ac466b update
- Fix the casting issue with setCamera
- Fix the linker undefined error with setCameraConfig
2022-09-01 23:00:02 +01:00
Lorow
9726e51446 Add missing logo.hpp 2022-09-01 23:45:55 +02:00
Lorow
8bb1eccd12 Add cameraReset endpoint, move logo from apiutils to separate package, fix emplace_back - missing param for adhoc
Known issues: doesn't compile, linker can't seem to find a definition of setCameraConfig
2022-09-01 22:50:14 +02:00
ZanzyTHEbar
13d307d964 update
- Fix the setWiFi method not writing to the correct config
- Depreciate the to_string method in favour of append method and itoa
2022-08-31 17:43:18 +01:00
ZanzyTHEbar
9fc62b6a36 update
- Revert initConfig to use empty string syntax. Easier to read.
2022-08-31 17:11:16 +01:00
ZanzyTHEbar
30212835fd update
- Fixed a minor bug in the wifihandler
not displaying the connected network properly
2022-08-31 17:10:50 +01:00
ZanzyTHEbar
d8f40da5a6 update
- Fix setWiFi crashing due to incorrect cast of int to byte.
- Update strings to use assign method.
2022-08-31 17:04:28 +01:00
ZanzyTHEbar
7a06a8da5c update
- Add user-configured wifi channel to constructor
2022-08-31 16:25:53 +01:00
ZanzyTHEbar
7fbe2ea446 update
- misspelled successfully - lol
2022-08-31 13:32:42 +01:00