mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
Comment out solar panel angle update logic in game controller listener
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user