Mercurial > public > hwos_code
diff src/compass.h @ 282:7d9edd3b8c86
Make a more compact COMPASS calibration code (<7KB), and add more tests.
author | jDG |
---|---|
date | Fri, 22 May 2015 14:50:40 +0200 |
parents | 11d4fc797f74 |
children | ca4556fb60b9 |
line wrap: on
line diff
--- a/src/compass.h Tue May 26 17:40:13 2015 +0200 +++ b/src/compass.h Fri May 22 14:50:40 2015 +0200 @@ -50,3 +50,11 @@ extern Angle itan(PARAMETER Int16 a, PARAMETER Int16 b); extern Angle cosxh(PARAMETER Int16 a, PARAMETER Int16 b); extern void sincos(PARAMETER Int16 a, PARAMETER Int16 b, Int16* sin, Int16* cos); + +////////////////////////////////////////////////////////////////////////////// +// The user functions +extern void compass(void); +extern void compass_reset_calibration(void); +extern void compass_add_calibration(void); + +extern void compass_solve_calibration(void);