Skip to content

Commit

Permalink
Merge pull request #511 from ZachOB/master
Browse files Browse the repository at this point in the history
Add support for the AS5x47U encoder
  • Loading branch information
vedderb authored Jul 24, 2022
2 parents 8a94e49 + 49fa30d commit 1cffcd2
Show file tree
Hide file tree
Showing 14 changed files with 607 additions and 10 deletions.
2 changes: 1 addition & 1 deletion confgenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdbool.h>

// Constants
#define MCCONF_SIGNATURE 3188187738
#define MCCONF_SIGNATURE 2217312675
#define APPCONF_SIGNATURE 2551442059

// Functions
Expand Down
4 changes: 3 additions & 1 deletion datatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ typedef enum {
FAULT_CODE_ENCODER_NO_MAGNET,
FAULT_CODE_ENCODER_MAGNET_TOO_STRONG,
FAULT_CODE_PHASE_FILTER,
FAULT_CODE_ENCODER_FAULT,
} mc_fault_code;

typedef enum {
Expand Down Expand Up @@ -188,7 +189,8 @@ typedef enum {
SENSOR_PORT_MODE_SINCOS,
SENSOR_PORT_MODE_TS5700N8501,
SENSOR_PORT_MODE_TS5700N8501_MULTITURN,
SENSOR_PORT_MODE_MT6816_SPI
SENSOR_PORT_MODE_MT6816_SPI,
SENSOR_PORT_MODE_AS5x47U_SPI
} sensor_port_mode;

typedef struct {
Expand Down
Loading

0 comments on commit 1cffcd2

Please sign in to comment.