Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer, Controller Software #131

Open
wants to merge 35 commits into
base: staging
Choose a base branch
from
Open

Conversation

JLefebvre55
Copy link
Member

Closes #130

Testing Documentation

All unit tests pass on hardware. All functionality displayed on hardware.

led color enum, parsing to String
Tests: GPIO miniUART serial port functionality (loopback test), compilation and upload test (blink), revision check test
Arduino compile and flash utility function (utils)
Readme overhaul
Removed deprecated Arduino libraries (scale, nau7802, float)
Also:
- More code formatting
- Folders for sensors, actuators
- .env template
- Updated control flow diagram
- Minor fixes
Fixed startup order of operations (Arduino Serial begin vs Post, initial instructions, etc.)
No more dynamic allocation
Added logging function to Spinner (pauses and restarts spinner)
Fixed batch publishing in local logging mode
Arduino accepts empty instruction set
Fixed spinner log ui util
Better C++ styling (header order, file naming, #include protection naming)
* Migrated to PlatformIO for compilation
* Separated JSON messaging, instruction parsing into utility files
* Moved globals to header
+ PIO Testing Suite
* Updated README
* Fixed PIO unit testing
* JSON messenger returns instead of printing to serial during unit tests
* main.cc ignored during unit tests
* Moved lib/ to src/
+ Setup jest
+ Utils unit tests
+ Arduino unit testing from TS
- Removed python tests, test readme
* Fixed TS compiling for RPi Node version (12.22.x)
* No longer running test_instructions or test_messenger (awaiting fix)
+ Direct Arduino instruction set command via GCP
* Fixed actuator target statefulness
- no more ignored tests
- no more "F" PSTR
* Fixed TS serial write error handling
+ Utils for exporting, unexporting, writing to, and reading from GPIO pins via sysfs
+ Testing suite for new utils
* Arduino reset pin pulled high on start
* De-nested, from {"air-temperature":{batch:[...]},...} to {"air-temperature":[...],...}
+ Added Jest config via gitignore "exclude"
- Removed camera
* Simulated interfaces accessible only via unit testing
+ Util methods for compound .env checking, returning and loading to objects
* Moved "simulated" interfaces to be in the same file as the classes they simulate
+ PeaPod class
+ More+better variable description comments
* Refactored "arduino" to "controller"
- Removed instances of "PeaPod" in type names (redundant)
- Removed "findSerialPath", useless (should ALWAYS rely on .env)
* Controller serial timeout now forces chip reset rather than fail
* Moved away from "then", instead using await (better for exception handling)
* Followed Google TS style guide :)
* Renamed PeaPodOS-Arduino to microcontroller
- Removed checkArduino and corresponding unit test
Made intervals private fields
- Removed sysfs GPIO util functions
+ Implemeneted `onoff` package GPIO
@JLefebvre55 JLefebvre55 added Type: New Feature New feature Status: In Progress Work on this feature has begun Scope: Engineering Design Design features and ideas labels Jul 16, 2022
@JLefebvre55 JLefebvre55 added this to the Design Sprint 1 milestone Jul 16, 2022
@JLefebvre55 JLefebvre55 self-assigned this Jul 16, 2022
JLefebvre55 and others added 9 commits July 16, 2022 13:13
* namespaced instruction handler functions
* optimized main loop to speed up instruction handling
+ Added sensor and actuator name strings (progmem), toString methods
* Moved datasetup to progmem
* Moved globals to static class properties
* Replaced all String with c strings
+ Added InterruptHandler interface to allow hardware interrupts to modify object instance data using a small hack
* Modified variable storage properties where fitting (i.e. const char* const* as opposed to const char**)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Engineering Design Design features and ideas Status: In Progress Work on this feature has begun Type: New Feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DESIGN] - Automation Software, Cloud Backend
1 participant