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.
Fork of muonhunter-K8 by
Diff: main.cpp
- Revision:
- 5:9c7c88f8f800
- Parent:
- 4:87037e41c888
- Child:
- 6:e95598c44a7f
--- a/main.cpp Wed Oct 05 16:56:33 2016 +0000 +++ b/main.cpp Thu Oct 06 15:00:05 2016 +0000 @@ -3,6 +3,17 @@ #include "detection.cpp" #include <queue> +//set the frequency of the oscillators below +int f1 = 4300; +int f2 = 4350; + +//set the coincidence times in us below +int coincidence_wait = 150; +bool buzzer = 1; + +/* NO USER CONFIGURABLE OPTIONS BELOW +*/ + //typically around 2 min data //assuming normal background #define DETECTION_MEMORY_LIMIT 128 @@ -12,9 +23,9 @@ #define DETECT_MUONS_ONLY 0 //set the coincidence time window in us -int coincidence_wait = 150; + bool mdet = 0; -bool buzzer = 1; + volatile int muon_total; volatile int gm1_total; @@ -173,8 +184,8 @@ //start main timer main_t.start(); -hv1.set_frequency(4300); -hv2.set_frequency(4350); +hv1.set_frequency(f1); +hv2.set_frequency(f2); GM1.fall(&GM1_hit); GM2.fall(&GM2_hit);