Skip to content

Commit

Permalink
Added forced air dump on sensor disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurenceb committed May 24, 2013
1 parent 8219a71 commit 4931e25
Show file tree
Hide file tree
Showing 7 changed files with 2,270 additions and 4,581 deletions.
Binary file modified lib/CMSIS_CM3/core_cm3.o
Binary file not shown.
Binary file modified lib/CMSIS_CM3/startup/gcc/startup_stm32f10x_md.o
Binary file not shown.
Binary file modified lib/CMSIS_CM3/system_stm32f10x.o
Binary file not shown.
Binary file modified main.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ int main(void)
shutdown(); //Puts us into sleep mode
}
}
//Pressure control is here
if(Millis%20000>4000) //20 second cycle of pressure control - 16s dump, 4s pump to 3psi
//Pressure control is here - note that very low sensor signal for >0.6 seconds will force an air dump
if((Millis%20000>4000) || (Undersaturation>(uint8_t)(PPG_SAMPLE_RATE*0.60)))//20 second cycle of pressure control - 16s dump, 4s pump to 3psi
Pressure_Setpoint=-1;
else
Pressure_Setpoint=2.5; //2.5PSI setpoint
Expand Down
Binary file modified main.elf
Binary file not shown.
6,847 changes: 2,268 additions & 4,579 deletions main.map

Large diffs are not rendered by default.

0 comments on commit 4931e25

Please sign in to comment.