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:
- 31:434a78739a59
- Parent:
- 30:ccf5fa970bd2
- Child:
- 32:570b94fe2c19
--- a/main.cpp Tue Oct 11 12:38:39 2022 +0000 +++ b/main.cpp Tue Oct 11 12:42:26 2022 +0000 @@ -16,6 +16,8 @@ #define I_TERM 0 #define D_TERM 20 +// Ccount before test +#define CYCLEBEFORETEST 1500 // Textfile paths #define PITLOGPATH "/local/pitlog.txt" @@ -66,7 +68,7 @@ while (1) { /* If cycle count divided by 100 does not have a rest. test if pit */ - if (ccount % 1500 == 0 && gotoPit == 0) + if (ccount % CYCLEBEFORETEST == 0 && gotoPit == 0) { TE_LogVoltage(ccount); gotoPit = PitTest();