Add new process msg
This commit is contained in:
parent
66e917de4d
commit
58a051b217
5 changed files with 71 additions and 42 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "config.h"
|
||||
#include "process_can.h"
|
||||
|
||||
|
||||
void SysTick_Handler(void) {
|
||||
HAL_IncTick();
|
||||
}
|
||||
|
@ -98,9 +99,13 @@ MotorControlInputs motor_control_inputs;
|
|||
|
||||
void loop() {
|
||||
__enable_irq();
|
||||
send_angle();
|
||||
send_velocity();
|
||||
foc_step(&motor);
|
||||
CAN_message_t msg;
|
||||
|
||||
|
||||
|
||||
// Process incoming CAN messages
|
||||
while (Can.read(msg)) {
|
||||
listen_can(msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue