From b3ddf5f22251bf87aa4529864a6f7b864bafae46 Mon Sep 17 00:00:00 2001 From: HanEmile Date: Thu, 16 Feb 2017 15:09:30 +0100 Subject: added blender.py --- a.out | Bin 19072 -> 19128 bytes blender.py | 0 main.cpp | 11 ++++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 blender.py diff --git a/a.out b/a.out index dce010b..f3f4ca6 100755 Binary files a/a.out and b/a.out differ diff --git a/blender.py b/blender.py new file mode 100644 index 0000000..e69de29 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; } -- cgit 1.4.1