Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LGstaandart by
Diff: DevicePLCS.h
- Revision:
- 178:672ef279c8e0
- Parent:
- 173:7f938afb0447
- Child:
- 186:c7a9c309086c
diff -r c718d402410d -r 672ef279c8e0 DevicePLCS.h
--- 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 {
