You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I am trying to adopt the release/stm32-blackpill SW to different HW (especially pump) and came across the update function of the PredictiveWeight class. If possible I would like to understand the idea behind the preassureDrop and puckRestistance calculations, but more importently I am wondering if the code in line 55 is meant to be like that: pressureDrop -= pressureDrop - state.pumpClicks;
In my opinion this line can be rewritten to pressureDrop = state.pumpClicks;
Is this intended or is the -= a mistake here?
Many thanks for all the work done and nice regards,
works24
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I am trying to adopt the release/stm32-blackpill SW to different HW (especially pump) and came across the
update
function of thePredictiveWeight
class. If possible I would like to understand the idea behind thepreassureDrop
andpuckRestistance
calculations, but more importently I am wondering if the code in line 55 is meant to be like that:pressureDrop -= pressureDrop - state.pumpClicks;
In my opinion this line can be rewritten to
pressureDrop = state.pumpClicks;
Is this intended or is the
-=
a mistake here?Many thanks for all the work done and nice regards,
works24
Beta Was this translation helpful? Give feedback.
All reactions