Skip to content

Conversation

@Jgerbrandt
Copy link
Member

No description provided.

@Jgerbrandt Jgerbrandt requested a review from cjchanx June 12, 2024 22:00
Comment on lines 87 to 95
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);
Copy link
Member

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

Copy link
Member Author

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
Copy link
Contributor

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

Comment on lines +57 to +61
while (1) {

//Process commands in blocking mode
Command cm;
bool res = qEvtQueue->ReceiveWait(cm);
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm more descriptive names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants