dgfirmware

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
DEN-5980 addressed code review comments

    • -32
    • +32
    /firmware/App/Controllers/Heaters.c
Can we log 2 data with alarms (set alarm and a data value when detected, log with alarm here)?

Can we log 2 data with alarms (set alarm and a data value when detected, log with alarm here)?

Is this the new "coldest spot" sensor?

Is this the new "coldest spot" sensor?

Can drain time out in this state? Why no check?

Can drain time out in this state? Why no check?

What is this state doing?

What is this state doing?

Are these the only two faults that can happen in R1 to R2 state?

Are these the only two faults that can happen in R1 to R2 state?

I prefer to reverse the order of these to change accidental = instead of ==.

I prefer to reverse the order of these to change accidental = instead of ==.

Check boolean explicitly.

Check boolean explicitly.

Check these booleans explicitly.

Check these booleans explicitly.

Set these booleans to TRUE or FALSE explicitly.

Set these booleans to TRUE or FALSE explicitly.

Is Thd same as TRo? Does it belong in this group?

Is Thd same as TRo? Does it belong in this group?

This comment needs a rephrase. I don't think range has anything to do with it. This is a retry counter check.

This comment needs a rephrase. I don't think range has anything to do with it. This is a retry counter check.

Recommend being much more descriptive of these states. What exactly is the state trying to accomplish.

Recommend being much more descriptive of these states. What exactly is the state trying to accomplish.

Why no actuators set for draining R2 here? I see VRd being set a few lines down. Maybe move this comment to go with the valve change.

Why no actuators set for draining R2 here? I see VRd being set a few lines down. Maybe move this comment to go with the valve change.

Checked with Nick. The DG does not expose motors to the user. The straw door switch should be open in Fill Mode to allow access to straw connection. The straw door switch should be closed in modes ...

Checked with Nick. The DG does not expose motors to the user.
The straw door switch should be open in Fill Mode to allow access to straw connection.
The straw door switch should be closed in modes such as (heat disinfection, chem disinfection) to prevent user from exposure to hot water or chemical.

Added TODO.

DEN-7091: Changed operation mode broadcast rate to 4 Hz and added time out for water quality check

I prefer boolean conditions be explicit (e.g. TRUE == isThisLastDrain). This way, if value gets corrupted to a garbage value (like 5) it will be same as FALSE.

I prefer boolean conditions be explicit (e.g. TRUE == isThisLastDrain). This way, if value gets corrupted to a garbage value (like 5) it will be same as FALSE.

Should actuators be reset here too?

Should actuators be reset here too?

This doesn't look like a complete list of possible status. What are these used for?

This doesn't look like a complete list of possible status. What are these used for?

I thought hot and cold paths got merged into one?

I thought hot and cold paths got merged into one?

When is status unknown? And shouldn't there be a partially full status?

When is status unknown? And shouldn't there be a partially full status?

Align #define values on left.

Align #define values on left.

This looks tight. Will we pass? Do we need a bigger filter for temp sensors?

This looks tight. Will we pass? Do we need a bigger filter for temp sensors?

Changed rate to 4 Hz.

Changed rate to 4 Hz.

Added timeout.

Added timeout.

Should we send DG modes more often? UI and HD stacks are keying off of these a lot and I worry 1 Hz will not be very responsive. I also worry there may be some modes/states that do not last 1 secon...

Should we send DG modes more often? UI and HD stacks are keying off of these a lot and I worry 1 Hz will not be very responsive. I also worry there may be some modes/states that do not last 1 second and HD may miss it.
If we speed this up, we should also speed up the HD modes broadcast as well.

Do we need to know if concentrates door is closed before turning on pumps?

Do we need to know if concentrates door is closed before turning on pumps?

Should we have a timeout on this?

Should we have a timeout on this?

As a common practice, I use #pragma around the structs. Does that matter?

As a common practice, I use #pragma around the structs. Does that matter?