Mercurial > public > hwos_code
diff src/compass.h @ 604:ca4556fb60b9
bump to 2.99beta, work on 3.00 stable
author | heinrichsweikamp |
---|---|
date | Thu, 22 Nov 2018 19:47:26 +0100 |
parents | 7d9edd3b8c86 |
children | c40025d8e750 |
line wrap: on
line diff
--- a/src/compass.h Thu Oct 11 21:06:29 2018 +0200 +++ b/src/compass.h Thu Nov 22 19:47:26 2018 +0100 @@ -5,23 +5,23 @@ //---- Storage classes ------------------------------------------------------- // Declaring PIC18 and VC++/G++ functions. #ifdef UNIX -# define PARAMETER -# define OVERLAY +# define PARAMETER +# define OVERLAY #else //---- Bank 9 parameters ----------------------------------------------------- -# pragma udata overlay bank9_compass = 0x900 -# define PARAMETER static -# define OVERLAY overlay +# pragma udata overlay bank9_compass = 0x900 +# define PARAMETER static +# define OVERLAY overlay #endif ////////////////////////////////////////////////////////////////////////////// -#define Q_PI (18000) -#define Q_PIO2 (9000) +#define Q_PI (18000) +#define Q_PIO2 (9000) -typedef short int Int16; -typedef signed char Int8; -typedef Int16 Angle; +typedef short int Int16; +typedef signed char Int8; +typedef Int16 Angle; // The (filtered) components of the magnetometer sensor: extern Int16 compass_DX_f; @@ -49,12 +49,12 @@ extern Angle utan(PARAMETER Int16 a, PARAMETER Int16 b); 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); + +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);