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

Method EmergencyDisableDrivers

src/Movement/Move2.cpp:483–493  ·  view source on GitHub ↗

Disable all drives in an emergency. Called from emergency stop and the tick ISR. This is only called in an emergency, so we don't update the driver status

Source from the content-addressed store, hash-verified

481// Disable all drives in an emergency. Called from emergency stop and the tick ISR.
482// This is only called in an emergency, so we don't update the driver status
483void Move::EmergencyDisableDrivers() noexcept
484{
485 for (size_t drive = 0; drive < GetNumActualDirectDrivers(); drive++)
486 {
487 if (!inInterrupt()) // on the Duet 06/085 we need interrupts running to send the I2C commands to set motor currents
488 {
489 UpdateMotorCurrent(drive, 0.0);
490 }
491 DisableOneLocalDriver(drive);
492 }
493}
494
495void Move::DisableAllDrivers() noexcept
496{

Callers 2

RepRap.cppFile · 0.80
TickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected