Skip to content

Conversation

@AchintyaAkula
Copy link
Contributor

Added voltage compensating motor, example is slightly lengthy, not sure how it will display.
Also added Looptime Component to components list

Added docs for voltage compensating motor, although example is little long, not sure how it will display
Added LoopTimeComponent part to TeleOp section of guide
@AchintyaAkula AchintyaAkula changed the title Updated motor page with VoltageCompensatingMotor Updated motor page with VoltageCompensatingMotor and LoopTimeComponent Dec 26, 2025
@AchintyaAkula AchintyaAkula changed the title Updated motor page with VoltageCompensatingMotor and LoopTimeComponent Added LoopTimeComponent and VoltageCompensatingMotor to docs Dec 26, 2025
@zachwaffle4 zachwaffle4 self-requested a review January 5, 2026 03:20
// or with "ideal" voltage(Volts) and voltage caching time(seconds/Duration) specifications
val myVoltageCompensatingMotor = VoltageCompensatingMotor(myMotorEx, 500.milliseconds, 12.0)
val myVoltageCompensatingMotor = VoltageCompensatingMotor(myMotorEx, 0.5, 12.0)
val myVoltageCompensatingMotor = VoltageCompensatingMotor(myMotorEx, "0.5", 12.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not want duration strings in Kotlin examples; Kotlin users have the extension properties available to create actual Duration objects.


// or with "ideal" voltage(Volts) and voltage caching time(seconds) specifications
VoltageCompensatingMotor myVoltageCompensatingMotor = new VoltageCompensatingMotor(myMotorEx, 0.5, 12.0)
VoltageCompensatingMotor myVoltageCompensatingMotor = new VoltageCompensatingMotor(myMotorEx, "0.5", 12.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"0.5" is not a valid duration string. "500ms" and "0.5s" would be correct here.

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