mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilib] Clean up simulation physics API (#2739)
Some vestigial functions were never removed, and C++ single-jointed arm sim was missing a flag for disabling gravity simulation. This is useful for mechanisms like turrets. Fixes #2738.
This commit is contained in:
@@ -55,7 +55,8 @@ class Robot : public frc::TimedRobot {
|
||||
// with a standard deviation of 0.5 degrees.
|
||||
frc::sim::SingleJointedArmSim m_armSim{
|
||||
m_armGearbox, 100.0, 5_kg, 30_in,
|
||||
-180_deg, 0_deg, true, {(0.5_deg).to<double>()}};
|
||||
-180_deg, 0_deg, true, {(0.5_deg).to<double>()},
|
||||
true};
|
||||
frc::sim::EncoderSim m_encoderSim{m_encoder};
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user