-
Notifications
You must be signed in to change notification settings - Fork 1
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
JLefebvre55
wants to merge
35
commits into
staging
Choose a base branch
from
subsystems-automation
base: staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
- Removed sysfs GPIO util functions + Implemeneted `onoff` package GPIO
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
* 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**)
lmajor91
force-pushed
the
subsystems-automation
branch
from
August 29, 2022 21:16
e0ddd6a
to
cb62731
Compare
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #130
Testing Documentation
All unit tests pass on hardware. All functionality displayed on hardware.