kalman reset estimation question

Firmware/software/electronics/mechanics
Post Reply
giandoman
Member
Posts: 37
Joined: Wed Sep 27, 2017 1:23 pm

kalman reset estimation question

Post by giandoman »

hello everybody,
i have one (maybe trivial) question.
In cf python codes i always see the reset kalman estimation done by these to command
cf.param.set_value('kalman.resetEstimation', '1')
time.sleep(0.1)
cf.param.set_value('kalman.resetEstimation', '0')
my question is...why one needs to switch the value of kalman.resetEstiation variable to 1 then to 0?
The default "working value" is 0 and in order to reset one has to switch to 1 and then bring it back to the working value. Am i right?
Thanks
Gianni
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: kalman reset estimation question

Post by arnaud »

The reset command is active on rising edge, so setting from 0 to 1 resets the kalman filter. We set it back to 0 so that next time you run the script it is reset again.
Post Reply