fix both motor MOE required

This commit is contained in:
Oskar Weigl
2017-05-16 17:47:53 -07:00
parent e1e9c68130
commit 2389e26e3b
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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
+1 -1
View File
@@ -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="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#10;"/>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#13;&#10;"/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>