Skip to content
Snippets Groups Projects
Commit 51e014b0 authored by Fabrizio Monti's avatar Fabrizio Monti
Browse files

[ENGINE] Updated HIL with Orion servo valves.

parent 9a7e178c
Branches
No related tags found
No related merge requests found
......@@ -134,7 +134,10 @@ ActuatorData MotorHIL::updateActuatorData()
ActuatorsStateHIL actuatorsStateHIL{
(actuators->getServoPosition(MAIN_VALVE)),
(actuators->getServoPosition(VENTING_VALVE))};
(actuators->getServoPosition(OX_VENTING_VALVE)),
(actuators->getServoPosition(NITROGEN_VALVE)),
(actuators->getServoPosition(N2_QUENCHING_VALVE)),
};
// Returning the feedback for the simulator
return ActuatorData{actuatorsStateHIL};
......
......@@ -47,16 +47,23 @@ enum class MotorFlightPhases
struct ActuatorsStateHIL
{
float mainValvePercentage = 0;
float ventingValvePercentage = 0;
float oxVentingValvePercentage = 0;
float nitrogenValvePercentage = 0;
float n2QuenchingValvePercentage = 0;
ActuatorsStateHIL()
: mainValvePercentage(0.0f), ventingValvePercentage(0.0f)
: mainValvePercentage(0.0f), oxVentingValvePercentage(0.0f),
nitrogenValvePercentage(0.0f), n2QuenchingValvePercentage(0.0f)
{
}
ActuatorsStateHIL(float mainValvePercentage, float ventingValvePercentage)
ActuatorsStateHIL(float mainValvePercentage, float oxVentingValvePercentage,
float nitrogenValvePercentage,
float n2QuenchingValvePercentage)
: mainValvePercentage(mainValvePercentage),
ventingValvePercentage(ventingValvePercentage)
oxVentingValvePercentage(oxVentingValvePercentage),
nitrogenValvePercentage(nitrogenValvePercentage),
n2QuenchingValvePercentage(n2QuenchingValvePercentage)
{
}
......@@ -64,8 +71,11 @@ struct ActuatorsStateHIL
{
printf(
"mainValve: %f perc\n"
"venting: %f perc\n",
mainValvePercentage * 100, ventingValvePercentage * 100);
"oxVenting: %f perc\n"
"nitrogen: %f perc\n"
"n2Quenching: %f perc\n",
mainValvePercentage * 100, oxVentingValvePercentage * 100,
nitrogenValvePercentage * 100, n2QuenchingValvePercentage * 100);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment