Skip to content

lock steering ignores wheel strength slider on torque wheels #2807

@Dunbaratu

Description

@Dunbaratu

When calculating how to tune the PIDs, SteeringManager makes use of the stock call ITorqueProvider.GetPotentialTorque() to find out how capable the ship is of turning.

The problem is that GetPotentialTorque() always returns the max torque that a reactionwheel COULD provide, ignoring the slider that can reduce reaction wheel strength.

(To test, print steeringmanager:rawtorque. in a terminal, move the reaction wheel's slider, and print it again - there is no difference.)

I tested it with an RCS block and the RCS blocks don't seem to have the same problem - they do vary with the thrust limiter. I also tested with a gimbal-able engine - it also seems to change with the thrust limiter since it pays attention to the actual thrust the engine is currently providing when calculating it (if the throttle is off, a gimbal engine does not contribute to GetPotentialTorque, as it should be.)

It seems that ONLY reaction wheels have this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWeird outcome is probably not what the mod programmer expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions