Comment out solar panel angle update logic in game controller listener

This commit is contained in:
acki
2024-12-05 21:37:29 -05:00
parent d8059103a6
commit 23f526bf0e

View File

@@ -149,7 +149,7 @@ namespace Modelec {
last_rotation = rotation;
}
if (msg->axes[2] != last_solar_1_angle) {
/*if (msg->axes[2] != last_solar_1_angle) {
int solarPannelAngle = static_cast<int>(Modelec::mapValue(static_cast<float>(msg->axes[2]), -1.0f, 1.0f, solarPannelServos[0].startAngle, solarPannelServos[0].endAngle));
auto solarPannelAngleMessage = modelec_interface::msg::PCA9685Servo();
solarPannelAngleMessage.pin = solarPannelServos[0].pin;
@@ -165,7 +165,7 @@ namespace Modelec {
solarPannelAngleMessage.angle = solarPannelAngle;
pca9685_publisher_->publish(solarPannelAngleMessage);
last_solar_2_angle = solarPannelAngle;
}
}*/
}
}