basic lightning detector with gps and sd card logging
Dependencies: AS3935 AdafruitGPS SDFileSystem TSI mbed ConfigFile
Diff: main.cpp
- Revision:
- 5:1d4fd419cfb7
- Parent:
- 4:4d26ba1ae0f7
- Child:
- 6:96b0dbe76357
diff -r 4d26ba1ae0f7 -r 1d4fd419cfb7 main.cpp --- a/main.cpp Wed Jun 24 16:36:55 2015 +0000 +++ b/main.cpp Wed Jun 24 18:18:43 2015 +0000 @@ -5,7 +5,7 @@ #include "SDFileSystem.h" #include "AS3935.h" -#define FW_VER 1 +#define FW_VER 2 // frdm-kl25z as3935 connections for spi1 // ------------------------------------------------ @@ -207,8 +207,13 @@ ld.init(); ld.clearStats(); + /* The precision of the calibration will depend on the + accuracy of the resonance frequency of the antenna. It is + recommended to first trim the receiver antenna before the + calibration of both oscillators is done. + */ + measFreq = ld.tuneAntenna(IntLightning); ld.calibrateRCOs(IntLightning); - measFreq = ld.tuneAntenna(IntLightning); ld.setOutdoors(); ld.setMinimumLightnings(0);