Pedro Pathing,
ElectroDromos is an add-on for Pedro Pathing. You keep Pedro's follower, paths and tune; it adds voltage compensation, a loop timer and write-caching mechanism motors on top.
Two lines in your Constants. Pedro's tune stays valid.
// Pedro Pathing's follower, with ElectroDromos on top
public static Follower create(HardwareMap h) {
Dromos dromos = new Dromos(h, dromosConfig);
return new Follower(
dromos.localizer(new PinpointLocalizer(h, localizerConfig)),
dromos.drivetrain(new Mecanum(h, drivetrainConfig)),
new Foresight(foresightConfig)
);
}
follower.follow(cycle); // same Pedro path, any batteryBattery
Path startEnd
- Battery
- 11.9 V
- voltageScale
- 1.06×
- Without
- 94% of tuned speed
- With ElectroDromos
- 100% of tuned speed
Illustration with nominalVoltage 12.6 V, assuming speed tracks voltage; not measured robot data.
What ElectroDromos adds
- Voltage compensationPath following and holding scaled to the battery, never your sticks.
- Voltage Compensation TunerAn AutoTune procedure that finds nominalVoltage for you.
- Loop timerLoop Hz and worst loop time for about 50 ns a loop.
- DromosMotorMechanism motors that skip hub writes that change nothing.
Built on Pedro Pathing by the Pedro Pathing team. ElectroDromos is made by ElectroLights 30686 and isn't affiliated with Pedro Pathing.