Stabilizator and data rate form controller
Posted: Fri Dec 25, 2015 1:58 pm
Hi all,
I want to ask if there's particular considerations to take in account about interrupts and stabilizator algorithm. I see that stabilizator task stay in delay and starts 500 times in a second. But since you are using RTOS(I don't know a lot about it) you have setted some kind of priority on stabilizator task like "no interrupts untill computations are not finished" or to not change task untill stabilizator task has not finished? and if you are in something like on peripheral transfer that can't be stopped(in the case you are not using dma) and stabilizator task is delayed that create some problems or this function is not that critical as i think?
About stabilizator data(pitch, roll, yaw), what is the frequency at you send packets of new values?
Thank you!
I want to ask if there's particular considerations to take in account about interrupts and stabilizator algorithm. I see that stabilizator task stay in delay and starts 500 times in a second. But since you are using RTOS(I don't know a lot about it) you have setted some kind of priority on stabilizator task like "no interrupts untill computations are not finished" or to not change task untill stabilizator task has not finished? and if you are in something like on peripheral transfer that can't be stopped(in the case you are not using dma) and stabilizator task is delayed that create some problems or this function is not that critical as i think?
About stabilizator data(pitch, roll, yaw), what is the frequency at you send packets of new values?
Thank you!