Skip to content

Read the MR transmission ownership flag from the vehicle - #125

Closed
terega wants to merge 1 commit into
quadural:mainfrom
terega:fix/transmission-ownership-flag
Closed

terega wants to merge 1 commit into
quadural:mainfrom
terega:fix/transmission-ownership-flag

Conversation

@terega

@terega terega commented Oct 16, 2026

Copy link
Copy Markdown

It might be intentional so if it is the case please ignore. I am just trying to support but do not have the full picture of the code.

VehicleMotor.mrUpdateStartGearValues reads self.mrTransmissionManagedByMR but self refers to the VehicleMotor instance.

The flag is maintained on the vehicle by WheelsUtil.mrUpdateWheelsPhysics. Read it through self.vehicle.mrTransmissionManagedByMR instead.

This restores the selection between MR available-power calculation and the original updateStartGearValues implementation. When the vehicle flag is false or unset, the original implementation remains in use.

It might be intentional so if it is the case please ignore. I am just trying to support but do not have the full picture of the code.


VehicleMotor.mrUpdateStartGearValues reads self.mrTransmissionManagedByMR but self refers to the VehicleMotor instance.

The flag is maintained on the vehicle by WheelsUtil.mrUpdateWheelsPhysics.
Read it through self.vehicle.mrTransmissionManagedByMR instead.

This restores the selection between MR available-power
calculation and the original updateStartGearValues implementation.
When the vehicle flag is false or unset, the original implementation
remains in use.
@quadural

Copy link
Copy Markdown
Owner

accepted. Again, this is really helpful, many thanks. Fixed in the next release. (this bug was introduced while trying to separate autodrive from MR)

@quadural quadural closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants