We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a10120 commit 9d74de7Copy full SHA for 9d74de7
arch_cortex/hax.c
@@ -29,7 +29,7 @@ void arch_init_1(void) {
29
adc_init();
30
exti_init();
31
32
- motors_init();
+ //motors_init();
33
34
memset(&u2m, 0, sizeof u2m);
35
memset(&m2u, 0, sizeof m2u);
@@ -105,11 +105,14 @@ void motor_set(index_t index, int8_t value) {
105
value2 = value + 128;
106
107
if (index == IX_MOTOR(1) || index == IX_MOTOR(10)) {
108
+ WARN("index %d; value %d; two-wire motor", index, value);
109
+#if 0
110
if (index == IX_MOTOR(1)) {
111
motor0_set((int16_t)value << 8);
112
} else {
113
motor1_set((int16_t)value << 8);
114
}
115
+#endif
116
} else if (IX_MOTOR(2) <= index && index <= IX_MOTOR(9)) {
117
u2m.u2m.motors[index - IX_MOTOR(2)] = value2;
118
0 commit comments