Previously a single moment where the vehicle was within 30deg of the target could cause the parachute release counter to reset to zero. This change makes the parachute release if it is spending at least half it's time with more than a 30degree angle error.
The thrust angle error is the difference between our desired thrust vector
and the actual thrust vector
Also some changes to use definitions in place of constants in the checks
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.