Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Classes | Namespaces
set_mode.h File Reference
#include <stdint.h>
#include "command_base.h"
Include dependency graph for set_mode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  logic::SetMode
 Sets the mode of TMC2130 for all motors at once. In the original proposal, the M0/M1 message was declared as a query, since it can be processed immediately. The reality is a bit different - the TMC2130 driver cannot change from SpreadCycle into StealthMode while moving the motor, at least not without serious jerking in most cases. Therefore the M0/M1 messages were reconsidered into a command, because only one command at a time can be performed (regardless of how long it takes it to finish) - that implies no motor moves are being performed while M0/M1 is being applied. More...
 

Namespaces

 logic
 The logic namespace handles the application logic on top of the modules.