m600: tune torque sensor parameters

Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
This commit is contained in:
Marcos Chaparro 2024-05-20 12:27:30 -03:00
parent 70a7e57f5a
commit acf14b4978
3 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@
#define APPCONF_PAS_INVERT_PEDAL_DIRECTION 0 #define APPCONF_PAS_INVERT_PEDAL_DIRECTION 0
// Sensor Magnets // Sensor Magnets
#define APPCONF_PAS_MAGNETS 12 #define APPCONF_PAS_MAGNETS 48
// Use Filter // Use Filter
#define APPCONF_PAS_USE_FILTER 1 #define APPCONF_PAS_USE_FILTER 1

View File

@ -21,7 +21,7 @@
#ifndef HW_LUNA_M600_H_ #ifndef HW_LUNA_M600_H_
#define HW_LUNA_M600_H_ #define HW_LUNA_M600_H_
#define FW_NAME "2023.12.13" #define FW_NAME "2024.05.08"
#ifdef M600_60V_BATTERY #ifdef M600_60V_BATTERY
#include "mcconf_luna_m600_60V.h" #include "mcconf_luna_m600_60V.h"

View File

@ -37,7 +37,7 @@
#include "mcpwm_foc.h" // for encoder angle error #include "mcpwm_foc.h" // for encoder angle error
#define LUNA_TORQUE_SENSOR_DEFAULT_TORQUE 0x02EE #define LUNA_TORQUE_SENSOR_DEFAULT_TORQUE 0x02EE
#define LUNA_TORQUE_SENSOR_MINIMUM_TORQUE 0x0360 #define LUNA_TORQUE_SENSOR_MINIMUM_TORQUE 0x044C
#define LUNA_TORQUE_SENSOR_MAXIMUM_TORQUE 0x0600 #define LUNA_TORQUE_SENSOR_MAXIMUM_TORQUE 0x0600
typedef enum { typedef enum {