Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Main.cpp
- Revision:
- 8:fa5cc1397510
- Parent:
- 6:b2672da545f1
- Child:
- 9:256989faeb3b
diff -r 3c2fd8f84075 -r fa5cc1397510 Main.cpp --- a/Main.cpp Thu Apr 09 02:31:18 2020 +0000 +++ b/Main.cpp Thu Apr 09 03:18:31 2020 +0000 @@ -16,7 +16,8 @@ int UpdatesPerSecond = 250; I2C I2CBus(A4, A5); int Address = BMP280SlaveAddressDefault; - GHVentilator GHV (UpdatesPerSecond, + GHVentilator GHV (UpdatesPerSecond, + UpdatesPerSecond >> 4, //<-- Max PEEP ticks before inhale. UpdatesPerSecond * 10, //<-- Calibration state tick count. I2CBus, Address, 0.25f, //<-------------- Pressure chamber hysteresis %.