fix: set txconf.Identifier from tx_id before CANTransmit, enable motor task

- DM motor send functions now fill txconf.Identifier from tx_id before CANTransmit
  (MIT=tid, PosVel=tid+0x100, Velocity=tid+0x200, SetMode=tid)
- Enable motor task with stack size 1024 1000Hz
- Increase FDCAN1 StdFiltersNbr from 1 to 14
- Comment out INS temperature log, DM error handling and PID for testing
- Remove test_robot_cmd.c
This commit is contained in:
2026-05-31 00:58:45 +08:00
parent 5e662f8458
commit 77a3aeb25c
7 changed files with 18 additions and 159 deletions
+6 -6
View File
@@ -32,12 +32,12 @@ void OSTaskInit()
};
insTaskHandle = osThreadNew(StartINSTASK, NULL, &insTask_attr);
// const osThreadAttr_t motorTask_attr = {
// .name = "motortask",
// .priority = osPriorityNormal,
// .stack_size = 256,
// };
// motorTaskHandle = osThreadNew(StartMOTORTASK, NULL, &motorTask_attr);
const osThreadAttr_t motorTask_attr = {
.name = "motortask",
.priority = osPriorityNormal,
.stack_size = 1024,
};
motorTaskHandle = osThreadNew(StartMOTORTASK, NULL, &motorTask_attr);
const osThreadAttr_t daemonTask_attr = {
.name = "daemontask",