about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 }