Hi, it's me again! Sad, yes! I manage to write code to execute the trajectory simulation. This code I test in Qt work fine. But I have some trouble to implement it in nios because of the Interval Timer. I can't seem to make it work.
So I make a timer and start running if the start_moving signal is 1. And everytime the timer update the target will move a distance equivalent to v*t (with t = 0.2s fixed). I tried to use interrupt, everytime the timer finished a cycle of t it will call the function timer_isr to calculate the position of the target. But somehow it didn't work. It only displayed the first position and stop there. Can anyone give me some pointer how to fix it.
Please see attached