#ifndef _PRECESS_RESULT_H_ #define _PRECESS_RESULT_H_ #include "main.h" #include "host_shoes.h" #include "slave_shoes.h" #include "send_data.h" //#define WHITE_SH0 //#define BLUE_SHO #define BLUE_SH1 #ifdef WHITE_SH0 #if IS_HOST float accBias[3] = { -0.0046f, 0.0111f, -0.0061f}; float accScale[3] = {1.0010f, 0.9996f, 0.9927f}; float magBias[3] = { -34.0845f, -274.1449f, -83.0503f}; float magScale[3] = { 0.0039f, 0.0042f, 0.0036f}; #else /* slave*/ float accBias[3] = {-0.0021f, 0.0031f, 0.0087f}; float accScale[3] = {1.0001f, 1.0007f, 0.9921f}; float magBias[3] = {-35.3160f, 86.2594f, -182.4592f}; float magScale[3] = {0.0041f, 0.0039f, 0.0032f}; #endif #elif defined BLUE_SHO #if IS_HOST float accBias[3] = { -0.0118f , 0.0130f , -0.0026f}; float accScale[3] = {1.0015f , 1.0011f , 0.9896f}; float magBias[3] = { 569.5943f , 271.8484f , 298.8276f}; float magScale[3] = {0.0040f , 0.0037f , 0.0039f}; #else /* slave*/ float accBias[3] = {-0.0299f, 0.0114f , -0.0716f}; float accScale[3] = {1.0017f, 1.0023f, 0.9884f}; float magBias[3] = {324.02837f, 599.89072f, -1323.1148f}; float magScale[3] = {0.0039f, 0.0037f, 0.0037f}; #endif #elif defined BLUE_SH1 #if IS_HOST float accBias[3] = { 0.0208f, 0.0066f, -0.0281f,}; float accScale[3] = {1.0011f, 1.0004f, 0.9955f,}; float magBias[3] = { 63.2058f , 113.6578f , -539.3837f}; float magScale[3] = {0.0038f , 0.0038f , 0.0037f,}; #else /* slave*/ float accBias[3] = { -0.0055f, 0.0097f, -0.0550f}; float accScale[3] = {1.0004f, 0.9991f, 1.0000f}; float magBias[3] = {-80.7255f, 715.1156f, -870.1321f}; float magScale[3] = {0.0037f, 0.0038f, 0.0036f}; #endif #endif #endif