updating height state filter, adding (retrieved) acceleration.
'software simulator' of the height state filter.