Skip to content

Commit 52e1705

Browse files
committed
Major restructuring for dual motor support, and added unity hw files
1 parent e1c859c commit 52e1705

37 files changed

+4647
-2275
lines changed

CHANGELOG

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
=== FW 5.00 ===
2+
* Dual motor support. VESC-based controllers such as the focbox unity will now work.
3+
*
4+
5+
=== FW 4.03 ===
6+
* Fixed bug in cross BEMF decoupling.
7+
* Disable CC decoupling during flux linkage measurement.
8+
19
=== FW 4.02 ===
210
* Position PID fix (most notable on multiturn encoders).
311
* App balance updates. See https://github.com/vedderb/bldc/pull/138.

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ CSRC = $(STARTUPSRC) \
157157
i2c_bb.c \
158158
virtual_motor.c \
159159
shutdown.c \
160+
mempools.c \
161+
worker.c \
160162
$(HWSRC) \
161163
$(APPSRC) \
162164
$(NRFSRC) \

applications/app_uartcomm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void app_uartcomm_configure(uint32_t baudrate, bool permanent_enabled) {
213213
static THD_FUNCTION(packet_process_thread, arg) {
214214
(void)arg;
215215

216-
chRegSetThreadName("uartcomm process");
216+
chRegSetThreadName("uartcomm proc");
217217

218218
event_listener_t el;
219219
chEvtRegisterMaskWithFlags(&HW_UART_DEV.event, &el, EVENT_MASK(0), CHN_INPUT_AVAILABLE);

chconf.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
* @details User fields added to the end of the @p thread_t structure.
417417
*/
418418
#define CH_CFG_THREAD_EXTRA_FIELDS \
419-
/* Add threads custom fields here.*/
419+
int motor_selected;
420420

421421
/**
422422
* @brief Threads initialization hook.
@@ -427,6 +427,7 @@
427427
*/
428428
#define CH_CFG_THREAD_INIT_HOOK(tp) { \
429429
/* Add threads initialization code here.*/ \
430+
tp->motor_selected = 1; \
430431
}
431432

432433
/**

0 commit comments

Comments
 (0)