mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 23:44:48 +08:00
fix both motor MOE required
This commit is contained in:
@@ -1214,6 +1214,13 @@ void motor_thread(void const * argument) {
|
||||
motor->thread_ready = true;
|
||||
|
||||
#ifdef STANDALONE_MODE
|
||||
//Only run tests on M0 for now
|
||||
if (motor == &motors[1]) {
|
||||
// TODO: figure out why M1 MOE must be enabled to run M0 correctly
|
||||
__HAL_TIM_MOE_ENABLE(motor->motor_timer);
|
||||
FOC_voltage_loop(motor, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
motor->do_calibration = true;
|
||||
motor->enable_control = true;
|
||||
#endif
|
||||
|
||||
@@ -57,6 +57,6 @@
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="Context string"/> "/>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="Context string"/> "/>
|
||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||
</launchConfiguration>
|
||||
|
||||
Reference in New Issue
Block a user