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

SkullOS - Rework Architecture #17

Closed
David032 opened this issue Nov 20, 2023 · 1 comment · Fixed by #19
Closed

SkullOS - Rework Architecture #17

David032 opened this issue Nov 20, 2023 · 1 comment · Fixed by #19
Assignees
Labels
enhancement Improvement of existing module

Comments

@David032
Copy link
Owner

David032 commented Nov 20, 2023

Whilst the current set-up does work, it's not great and is very hard to communicate between modules. There's got to be a better way

Potential Rebuild Plan

  • Each piece of physical hardware should be represented by a service that models it's functionality. i.e 'CameraService' would interface with the camera, 'BuzzerService' with the buzzer, 'InputService' for buttons/switches, etc.
  • Each software function will be represented by a module that will provide functionality. These may consume one or more hardware services
  • This functionality will be accessible via an API, or through using the onboard inputs to change between controllers
@David032 David032 added the enhancement Improvement of existing module label Nov 20, 2023
@David032
Copy link
Owner Author

David032 commented Nov 21, 2023

Hardware Services

  • Camera
  • Buzzer
  • Speaker
  • Microphone
  • LEDs
  • Programmable LEDs

Software Functions

@David032 David032 self-assigned this Nov 21, 2023
@David032 David032 added this to the MCM Birmingham 2023 milestone Nov 21, 2023
David032 added a commit that referenced this issue Nov 21, 2023
Hardware Services implemented, modules laid out, camera implemented but not tested
Still need to work out what I'm doing about the api
David032 added a commit that referenced this issue Nov 23, 2023
It's now looking more workable
David032 added a commit that referenced this issue Nov 24, 2023
API is loading, structure is all there(I think) but seem to be missing something in the loading of the modules
David032 added a commit that referenced this issue Nov 24, 2023
Just can't clear the microphone stage as there isn't one
Also need to double check the logger
David032 added a commit that referenced this issue Nov 26, 2023
Used the birthday experiment code, so #18 can be closed once this is merged
David032 added a commit that referenced this issue Nov 26, 2023
Tried to add the camera and buzzer to the api, but it didn't like something
David032 added a commit that referenced this issue Nov 27, 2023
Something's not working in it if it's ran as part of the main program
David032 added a commit that referenced this issue Nov 27, 2023
But need to do something about the skull logger, since it's not present in the api
David032 added a commit that referenced this issue Nov 28, 2023
@David032 David032 linked a pull request Nov 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant