-
Notifications
You must be signed in to change notification settings - Fork 1
Altimeter Task #9
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
base: main
Are you sure you want to change the base?
Conversation
| MPL3115A2S_Config cfg {0}; | ||
| MPL3115A2S_Data_Config dcfg {0}; | ||
| MPL3115A2S_Int_Config icfg {0}; | ||
|
|
||
| cfg.altimeter_mode = 1; | ||
| cfg.os_ratio = MPL3115A2S_CTRL_OS32; | ||
| dcfg.enable_all_flags = 1; | ||
|
|
||
| MPL3115A2S_Init(&cfg, &dcfg, &icfg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only run Init once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oopsie forgot to commit
| enum AltimeterTaskRequests | ||
| { | ||
| ALTIMETER_REQUEST_NONE = 0, | ||
| ALTIMETER_REQUEST_POLL, // Poll Request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the 2 tabs here are crazy
| while (1) { | ||
|
|
||
| //Process commands in blocking mode | ||
| Command cm; | ||
| bool res = qEvtQueue->ReceiveWait(cm); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the system design we should be polling the sensor and storing it in this task then the altitude task will poll this task when it wants data
| float marioTemperature; | ||
| float luigiPressure; | ||
| float luigiTemperature; | ||
| // float bowserPressure; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
umm more descriptive names?
No description provided.