mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 15:34:33 +08:00
ensure sane config if config CRC16 mismatches
This commit is contained in:
@@ -222,6 +222,11 @@ void init_configuration(void) {
|
||||
// motor_config[0] = MotorConfig_t();
|
||||
// motor_config[1] = MotorConfig_t();
|
||||
|
||||
// TODO: temporary hack, this is gonna change after refactoring
|
||||
axis_configs[0] = AxisConfig();
|
||||
axis_configs[1] = AxisConfig();
|
||||
brake_resistance = 0.47f;
|
||||
|
||||
// Default config coming from flashed Motor_t
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user