summary refs log tree commit diff
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
parent2cf6a85560b90ec2fc46dc0ec3b0aae0ae4a7ad2 (diff)
added blender.py cpp
-rwxr-xr-xa.outbin19072 -> 19128 bytes
-rw-r--r--blender.py0
-rw-r--r--main.cpp11
3 files changed, 10 insertions, 1 deletions
diff --git a/a.out b/a.out
index dce010b..f3f4ca6 100755
--- a/a.out
+++ b/a.out
Binary files differdiff --git a/blender.py b/blender.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/blender.py
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;
 }