summary refs log tree commit diff
path: root/main.cpp
diff options
context:
space:
mode:
authorHanEmile <emile.hansmaennel@gmail.com>2017-02-16 15:09:30 +0100
committerHanEmile <emile.hansmaennel@gmail.com>2017-02-16 15:09:30 +0100
commitb3ddf5f22251bf87aa4529864a6f7b864bafae46 (patch)
tree5e29b1b88a730ac015db86d4311f07f7e8e591ee /main.cpp
parent2cf6a85560b90ec2fc46dc0ec3b0aae0ae4a7ad2 (diff)
added blender.py cpp
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 29214bd..4d23d8e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -12,6 +12,7 @@ class TLE{
   public:
     void get_data(int, int, int);
     void download();
+    void write_fifo_1(int);
 };
 
 void TLE::get_data(int value, int category, int satNr){
@@ -28,6 +29,7 @@ void TLE::get_data(int value, int category, int satNr){
         std::getline(file, line);
     }
 
+    // get value
     if(value == 1){
       std::getline(file, line);
       for(int i = 0; i < 24; i++){
@@ -268,10 +270,17 @@ int main(){
   // system("ls -l");
   // system("python3 download_data.py");
 
+  int category = 1;
+
+
   TLE sat;
   // sat.download();
-  sat.get_data(19, 1, 2);
+
+  data = sat.get_data(19, 1, 2);
+  sat.write_fifo_1(data);
+
   std::cout << std::endl;
+  system("python3");
 
   return 0;
 }