added optional CRC check for debugging Encoder SPI communication
This commit is contained in:
parent
29e285dc15
commit
73fc46eb63
6 changed files with 58 additions and 13 deletions
|
|
@ -24,6 +24,10 @@ constexpr float ENCODER_MAGNET_PITCH = 3.0f; // [mm]
|
|||
constexpr float ENCODER_MAGNET_RADIUS = 30.0f; // [mm]
|
||||
constexpr float ENCODER_ANGLE_TO_ROTOR_ANGLE = (ENCODER_MAGNET_PITCH*2.0f) /
|
||||
(ENCODER_MAGNET_RADIUS * Constants::TWO_PI_F);
|
||||
|
||||
// enables error checking for encoders (slow) - useful for debugging
|
||||
// Note: some chips seem to return always a crc of 0 producing massiv false errors
|
||||
constexpr bool ENABLE_ENCODER_CRC = false;
|
||||
|
||||
//--- HOMING ------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue