Finding function maxium with real time data

Intro: I am starting to build model rocket with friends (I am totaly new to programing real time systems) and I need to write an alghoritm that detect whenever rocket should deploy its parachute. An alghoritm is checking for multiple sources before it decides to deploy parachute (eg if and rocket engine is not running anymore). One of them is checking if vehicle reached its maximum height. I need to write and alghoritm that finds maximum of height function in real time. The height data is alread filtered with Extended Kalman Filter


Do you know any alghoritm that would be usefull in that situation? I think I could figure out detection myself but reinventing a wheel is probably not the most effictient way to do this.

submitted by /u/Phate93
[link] [comments]