123

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
177:672ef279c8e0
Parent:
173:7f938afb0447
Child:
183:c7a9c309086c
--- a/DevicePLCS.h	Thu Jun 30 09:04:22 2016 +0000
+++ b/DevicePLCS.h	Sun Jul 03 13:40:48 2016 +0000
@@ -76,24 +76,24 @@
 
 //Path length control system regulator typedefs
 typedef struct _DevicePLCSCorrectionTransferFunction {
-  uint32_t points;     //Number of actual control points (up to 16)
-  int32_t error[16];   //Regulator error value - degrees in 16.16 format
-  int32_t correction[16]; //Regulator correction value - volts in 16.16 format
+  uint32_t points;        //Number of actual control points (up to 16)
+  int32_t error[16];      //Regulator error value - degrees in 16.16 format
+  int32_t correction[16]; //Regulator correction value - -1...+1 in 16.16 format
 } DevicePLCSCorrectionTransferFunction;
 
 typedef struct _DevicePLCSRegulatorSettings {
   uint8_t enabled;
-  uint32_t reference; //signed 16.16 format reference bias
-  //uint32_t scale;     //signed 16.16 format regulator scale factor
+  int32_t reference; //Reference bias - signed 16.16 format
+  int32_t scale;     //Regulator scale factor - signed 16.16 format
   DevicePLCSCorrectionTransferFunction transfer;
 } DevicePLCSRegulatorSettings;
 
 typedef struct _DevicePLCSRegulatorState {
   uint8_t enabled;
-  uint32_t reference; //signed 16.16 format reference bias
-  //uint32_t scale;     //signed 16.16 format regulator scale factor
-  uint32_t error;     //signed 16.16 format regulator error
-  uint32_t correction;//signed 16.16 format output correction
+  int32_t reference; //Reference bias - signed 16.16 format
+  int32_t scale;     //Regulator scale factor - signed 16.16 format
+  int32_t error;     //Regulator error - signed 16.16 format
+  int32_t correction;//Output correction - signed 16.16 format 
 } DevicePLCSRegulatorState;
 
 typedef struct _DevicePLCSRegulator {