M1M3 Support System
Loading...
Searching...
No Matches
FinalForceComponent.h
1/*
2 * This file is part of LSST M1M3 support system package.
3 *
4 * Developed for the Vera C. Rubin Telescope and Site System.
5 * This product includes software developed by the LSST Project
6 * (https://www.lsst.org).
7 * See the COPYRIGHT file at the top-level directory of this distribution
8 * for details of code ownership.
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef LSST_M1M3_SS_FORCECONTROLLER_FINALFORCECOMPONENT_H_
25#define LSST_M1M3_SS_FORCECONTROLLER_FINALFORCECOMPONENT_H_
26
27#include <EnabledForceActuators.h>
28#include <ForceActuatorApplicationSettings.h>
29#include <ForceComponent.h>
30#include <SAL_MTM1M3C.h>
31#include <SafetyController.h>
32
33namespace LSST {
34namespace M1M3 {
35namespace SS {
36
44public:
50 FinalForceComponent(ForceActuatorApplicationSettings *forceActuatorApplicationSettings);
51
56
57 void postEnableDisableActions() override;
58
59protected:
60 void postUpdateActions() override;
61
62private:
63 SafetyController *_safetyController;
64 EnabledForceActuators *_enabledForceActuators;
65 ForceActuatorApplicationSettings *_forceActuatorApplicationSettings;
66
67 MTM1M3_logevent_forceActuatorStateC *_forceActuatorState;
68 MTM1M3_logevent_forceSetpointWarningC *_forceSetpointWarning;
69 MTM1M3_appliedForcesC *_appliedForces;
70 MTM1M3_logevent_preclippedForcesC *_preclippedForces;
71
72 MTM1M3_appliedAccelerationForcesC *_appliedAccelerationForces;
73 MTM1M3_logevent_appliedActiveOpticForcesC *_appliedActiveOpticForces;
74 MTM1M3_appliedAzimuthForcesC *_appliedAzimuthForces;
75 MTM1M3_appliedBalanceForcesC *_appliedBalanceForces;
76 MTM1M3_appliedElevationForcesC *_appliedElevationForces;
77 MTM1M3_logevent_appliedOffsetForcesC *_appliedOffsetForces;
78 MTM1M3_logevent_appliedStaticForcesC *_appliedStaticForces;
79 MTM1M3_appliedThermalForcesC *_appliedThermalForces;
80 MTM1M3_appliedVelocityForcesC *_appliedVelocityForces;
81};
82
83} /* namespace SS */
84} /* namespace M1M3 */
85} /* namespace LSST */
86
87#endif /* LSST_M1M3_SS_FORCECONTROLLER_FINALFORCECOMPONENT_H_ */
Wrapper object for MTM1M3_logevent_enabledForceActuatorsC.
Definition EnabledForceActuators.h:44
Final force produced as sum of components.
Definition FinalForceComponent.h:43
void postEnableDisableActions() override
Called after enable/disable changes.
Definition FinalForceComponent.cpp:174
FinalForceComponent(ForceActuatorApplicationSettings *forceActuatorApplicationSettings)
Sets internal variables.
Definition FinalForceComponent.cpp:43
void postUpdateActions() override
Called after update to forces.
Definition FinalForceComponent.cpp:178
void applyForcesByComponents()
Sums applied forces to target x,y and z forces.
Definition FinalForceComponent.cpp:66
(Almost) constant force actuator values.
Definition ForceActuatorApplicationSettings.h:87
Abstract parent class of all force components.
Definition ForceComponent.h:65
Controls mirror safety.
Definition SafetyController.h:50