Skip to content
Snippets Groups Projects
Unverified Commit 5433ec17 authored by Hernán Asorey's avatar Hernán Asorey
Browse files

Reading P&T in new data structure

parent d243adbe
Branches master
No related tags found
No related merge requests found
...@@ -20,12 +20,13 @@ ...@@ -20,12 +20,13 @@
#define CODEVERSION "v5" #define CODEVERSION "v5"
#define DATAVERSION 5 #define DATAVERSION 5
#define CHANNELS 3 #define CHANNELS 2
#define TRACELEN 12 #define TRACELEN 12
#define BASELINE 50 #define BASELINE 50
#define BIN 25. #define BIN 25.
#define ADCMAX 1024 #define ADCMAX 1024
#define CHRGMAX 4096 #define CHRGMAX 4096
#define CHRGMIN 0
#define TRIGGERBIN 3 #define TRIGGERBIN 3
#endif #endif
\ No newline at end of file
...@@ -103,8 +103,14 @@ class LagoFile { ...@@ -103,8 +103,14 @@ class LagoFile {
break; break;
case 'x': // extra data case 'x': // extra data
switch (line[4]) { switch (line[4]) {
case 's': // sensors case 's': // sensors in Nexys
sscanf(line, "# x s %lf C %lf hPa", &(Data->temperature), &(Data->pressure)); // not reading altitude sscanf(line, "# x s %lf C %lf hPa", &(Data->temperature), &(Data->pressure)); // not reading altitude
break;
case 'p': // pressure in RP
sscanf(line, "# x p %lf", &(Data->pressure));
break;
case 't': // temperature in RP
sscanf(line, "# x t %lf", &(Data->temperature));
break; break;
case 'f': // clock frequency case 'f': // clock frequency
sscanf(line, "# x f %d\n", &(Data->clockfrequency)); sscanf(line, "# x f %d\n", &(Data->clockfrequency));
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# License: BSD-3-Clause # License: BSD-3-Clause
# See the LICENSE file in the project root for full license information. # See the LICENSE file in the project root for full license information.
################################################################################ ################################################################################
VERSION="1.5.0" VERSION="2.0.0"
export LAGO_ANNA=${PWD} export LAGO_ANNA=${PWD}
date=$(date -u) date=$(date -u)
echo "# echo "#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment