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.
Dependencies: N5110 SDFileSystem SRF02 TMP102 mbed
Diff: main.h
- Revision:
- 10:c9f3c22368f1
- Parent:
- 9:bc259fc22fa2
- Child:
- 11:b64d123b9f4f
--- a/main.h Wed May 04 14:05:07 2016 +0000 +++ b/main.h Wed May 04 22:16:06 2016 +0000 @@ -22,8 +22,8 @@ #define LOW 0 /// No output #define HIGH 1 /// High output -#define METRIC 1 -#define IMPERIAL 0 + + @@ -125,7 +125,7 @@ float c =1; /// convertion factor from Cm to inch 1 = metric no convertion int check_flag = 0; ///??????????? float distbar; - +int flash = 0; struct Alertlevel { char srr_led; /// stead RED LED state char sa_led; /// stead AMBER LED state @@ -140,12 +140,12 @@ STyp Alertlevel[8] = { {LOW,LOW,LOW,LOW,LOW,LOW,0,1}, // no output - {LOW,LOW,LOW,LOW,LOW,HIGH,0.1,0.9}, //flash green + {LOW,LOW,LOW,LOW,LOW,HIGH,0.1,1.0}, //flash green {LOW,LOW,HIGH,LOW,LOW,LOW,0.1,0.5}, //steady green - {LOW,LOW,HIGH,LOW,HIGH,LOW,0.1,0.3}, //flash amber - {LOW,HIGH,HIGH,LOW,LOW,LOW,0.2,0.2}, //steady amber + {LOW,LOW,HIGH,LOW,HIGH,LOW,0.1,0.25}, //flash amber + {LOW,HIGH,HIGH,LOW,LOW,LOW,0.1,0.1}, //steady amber {LOW,HIGH,HIGH,HIGH,LOW,LOW,0.2,0.1}, //flash red - {HIGH,HIGH,HIGH,LOW,LOW,LOW,0.1,0.1},// steady red + {HIGH,HIGH,HIGH,LOW,LOW,LOW,0.1,0.05},// steady red {LOW,LOW,LOW,HIGH,HIGH,HIGH,1,0} // all flash };/*!< Array contaning structures for diffent outputs */