12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /*
- * measurements.h
- *
- * Created on: Aug 22, 2024
- * Author: jakubski
- */
- #ifndef INC_MEASUREMENTS_H_
- #define INC_MEASUREMENTS_H_
- #define SLAVES_COUNT 4
- #define PHASES_QTY 3
- #define TEMPERATURE_QTY 2
- struct _RESMeasurements {
- float voltageRMS[PHASES_QTY];
- float voltagePeak[PHASES_QTY];
- float currentRMS[PHASES_QTY];
- float currentPeak[PHASES_QTY];
- float power[PHASES_QTY];
- };
- struct _SesnorsInfo {
- float pvTemperature[TEMPERATURE_QTY];
- float fanVoltage;
- int32_t pvEncoderXraw;
- int32_t pvEncoderYraw;
- uint8_t motorXStatus;
- uint8_t motorYStatus;
- float motorXAveCurrent;
- float motorYAveCurrent;
- float motorXPeakCurrent;
- float motorYPeakCurrent;
- uint8_t limitXSwitchUp;
- uint8_t limitXSwitchDown;
- uint8_t limitXSwitchCenter;
- uint8_t limitYSwitchUp;
- uint8_t limitYSwitchDown;
- uint8_t limitYSwitchCenter;
- uint8_t powerSupplyFailMask;
- float currentXPosition;
- float currentYPosition;
- uint8_t positionXWeak;
- uint8_t positionYWeak;
- float positionXOffset;
- float positionYOffset;
- };
- typedef struct _RESMeasurements RESMeasurements;
- typedef struct _SesnorsInfo SesnorsInfo;
- extern RESMeasurements resMeasurements;
- extern SesnorsInfo sensorsInfo;
- #endif /* INC_MEASUREMENTS_H_ */
|