MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / EngageBrake

Method EngageBrake

src/Movement/Move2.cpp:503–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void Move::EngageBrake(size_t driver) noexcept
504{
505#if SUPPORT_BRAKE_PWM
506 currentBrakePwm[driver] = 0.0;
507 brakePorts[driver].WriteAnalog(0.0);
508#else
509 brakePorts[driver].WriteDigital(false); // turn the brake solenoid off to engage the brake
510#endif
511}
512
513void Move::DisengageBrake(size_t driver) noexcept
514{

Callers

nothing calls this directly

Calls 2

WriteAnalogMethod · 0.45
WriteDigitalMethod · 0.45

Tested by

no test coverage detected