Commit e57dd5fd authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Missing include

parent fa931710
......@@ -13,6 +13,7 @@
#include <iostream> // For reading / writing streams of strings to STD I/O
#include <sstream> // For parsing strings
#include <algorithm> // Sorting and median
#include <cmath> // round
// C Headers
#include <time.h> // For system time
......
......@@ -9,7 +9,7 @@
//
// Driver for GSM19
#include <driver_obs_gsm19.hpp>
#include <driver_obs_gsm90.hpp>
// Data buffer implemented as pipe on stdout/stdin
#include <buffer_obs_pipe.hpp>
......@@ -20,10 +20,10 @@ int main() {
// Initialize new GSM90 device
// Provide serial port and buffer as arguments
driver_obs_gsm19 gsm19 = driver_obs_gsm19("/dev/ttyUSB0", &pipe);
driver_obs_gsm90 gsm90 = driver_obs_gsm90("/dev/ttyUSB0", &pipe);
// Take continuous measurements every 5s
printf("Run\n");
gsm19.run(5);
gsm90.run(5);
}
......@@ -36,7 +36,7 @@ int main(){
serial.send((const char*) cmd.c_str());
serial.receive(buf,sizeof(buf),1);
serial.receive(buf,sizeof(buf),5);
std::cout << buf << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment