removed use of spi_m_dma_transfer
This commit is contained in:
@@ -58,8 +58,10 @@ static void One_ms_cycle_callback(const struct timer_task *const timer_task)
|
||||
//}
|
||||
Motor1.timerflags.current_loop_tic = true;
|
||||
Motor2.timerflags.current_loop_tic = true;
|
||||
update_telemetry();
|
||||
update_setpoints();
|
||||
Motor1.timerflags.motor_telemetry_flag = true;
|
||||
Motor2.timerflags.motor_telemetry_flag = true;
|
||||
//update_telemetry();
|
||||
//update_setpoints();
|
||||
|
||||
|
||||
//run_ECAT = true;
|
||||
@@ -215,8 +217,14 @@ int main(void)
|
||||
exec_commutation(&Motor1);
|
||||
exec_commutation(&Motor2);
|
||||
}
|
||||
//if (run_ECAT) {ECAT_STATE_MACHINE();}
|
||||
|
||||
if (Motor1.timerflags.motor_telemetry_flag) {
|
||||
Motor1.timerflags.motor_telemetry_flag = false;
|
||||
update_telemetry();
|
||||
update_setpoints();
|
||||
|
||||
}
|
||||
//if (run_ECAT) {ECAT_STATE_MACHINE();}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user