gamma_controller

Revision:
0:c1bfd7b7e4b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gamma_ctrl.cpp	Tue Jun 27 07:54:10 2017 +0000
@@ -0,0 +1,26 @@
+#include "gamma_ctrl.h"
+
+gamma_ctrl::gamma_ctrl(int baudlate_g)
+    :ctrl_serial(baudlate_g,GAMMA_DATA_SIZE)
+{
+}
+    
+void gamma_ctrl::get_data()
+{
+    //printf("sub class\r\n");
+    if(allready_set_data == true)
+    {
+        for(int t = 0;t < GAMMA_DATA_SIZE;t++)
+        {
+            pack.all_data[t] = ctrl_data[t];
+            //printf("%x",ctrl_data[t]);
+        }
+        allready_set_data = false;
+        //printf("\r\n"); 
+    }
+    /*else
+    {
+        for(int t = 0;t < GAMMA_DATA_SIZE;t++)
+            pack.all_data[t] = 0;
+    }*/
+}
\ No newline at end of file