Conversation
|
@tytremblay The launcher flywheels don't get to target in sim using the same gains as on the real robot. Should we use different gains for sim or do you think there's a way to make the sim more like real life? |
|
@Sid220 use sim gains for now until we tune the launcher on the real robot. Is this with the new moi? |
|
Yeah, that was using this MOI |
|
I might have gotten the MOI wrong, or the ratio |
|
There could also be some weirdness arising from creating two public SimTalonFXIO(TalonFXSubsystemConfig config) {
// the TalonFX in the parent class will store and update the motor charecteristics in simulation
// the DCMotorSim has the plant model that lets up update the motor state while running in
// simulation.
// The gearing parameter is the gear ratio (rotor rotations per mechanism rotation).
// DCMotorSim outputs mechanism-side position/velocity when gearing is applied.
this(
config,
new DCMotorSim(
LinearSystemId.createDCMotorSystem(
DCMotor.getKrakenX60Foc(1),
config.momentOfInertia.in(KilogramSquareMeters),
config.unitToRotorRatio),
DCMotor.getKrakenX60Foc(1),
0.001,
0.001));
} |
@Sid220 this is because we changed the ratios and it blew up all the gains. Sorry. I should have caught this. |
|
@tytremblay That's ok, makes sense. I'll do some work tonight cleaning up all the sim implementations. |
Describe your changes
Issue ticket number and link
PR Yes/No List
1. Scope
2. Build & Deploy
3. Safety & Enable Behavior
4. Testing & Verification
5. Behavior & Integration
6. Code Quality & Maintainability
7. Readiness to Merge