2021 nhk A team
Dependencies: mbed QEI led beep softPWM Servo_softpwm IR2302 lpf
jy901_def.h
00001 #ifndef JY901_DEF_H 00002 #define JY901_DEF_H 00003 00004 #define IICADDR 0xa0 // IIC address 00005 #define g 9.8 // Acceleration of gravity 00006 00007 #define SAVE 0x00 // Save 00008 #define CALSW 0x01 // Calibration 00009 #define RSW 0x02 // Return data content 00010 #define RATE 0x03 // Return data Speed 00011 #define BAUD 0x04 // Baud rate 00012 #define AXOFFSET 0x05 // X axis Acceleration bias 00013 #define AYOFFSET 0x06 // Y axis Acceleration bias 00014 #define AZOFFSET 0x07 // Z axis Acceleration bias 00015 #define GXOFFSET 0x08 // X axis angular velocity bias 00016 #define GYOFFSET 0x09 // Y axis angular velocity bias 00017 #define GZOFFSET 0x0a // Z axis angular velocity bias 00018 #define HXOFFSET 0x0b // X axis Magnetic bias 00019 #define HYOFFSET 0x0c // Y axis Magnetic bias 00020 #define HZOFFSET 0x0d // Z axis Magnetic bias 00021 #define D0MODE 0x0e // D0 mode 00022 #define D1MODE 0x0f // D1 mode 00023 #define D2MODE 0x10 // D2 mode 00024 #define D3MODE 0x11 // D3 mode 00025 #define D0PWMH 0x12 // D0PWM High-level width 00026 #define D1PWMH 0x13 // D1PWM High-level width 00027 #define D2PWMH 0x14 // D2PWM High-level width 00028 #define D3PWMH 0x15 // D3PWM High-level width 00029 #define D0PWMT 0x16 // D0PWM Period 00030 #define D1PWMT 0x17 // D1PWM Period 00031 #define D2PWMT 0x18 // D2PWM Period 00032 #define D3PWMT 0x19 // D3PWM Period 00033 #define LEDOFF 0x1b // Turn off LED 00034 #define GPSBAUD 0x1c // GPS baud rate 00035 00036 #define YYMM 0x30 // Year、Month 00037 #define DDHH 0x31 // Day、Hour 00038 #define MMSS 0x32 // Minute、Second 00039 #define MS 0x33 // Millisecond 00040 #define AX 0x34 // X axis Acceleration 00041 #define AY 0x35 // Y axis Acceleration 00042 #define AZ 0x36 // Z axis Acceleration 00043 #define GX 0x37 // X axis angular velocity 00044 #define GY 0x38 // Y axis angular velocity 00045 #define GZ 0x39 // Z axis angular velocity 00046 #define HX 0x3a // X axis Magnetic 00047 #define HY 0x3b // Y axis Magnetic 00048 #define HZ 0x3c // Z axis Magnetic 00049 #define Roll 0x3d // X axis Angle 00050 #define Pitch 0x3e // Y axis Angle 00051 #define Yaw 0x3f // Z axis Angle 00052 #define TEMP 0x40 // Temperature 00053 #define D0Status 0x41 // D0Status 00054 #define D1Status 0x42 // D1Status 00055 #define D2Status 0x43 // D2Status 00056 #define D3Status 0x44 // D3Status 00057 #define PressureL 0x45 // Pressure Low Byte 00058 #define PressureH 0x46 // Pressure High Byte 00059 #define HeightL 0x47 // Height Low Byte 00060 #define HeightH 0x48 // Height High Byte 00061 #define LonL 0x49 // Longitude Low Byte 00062 #define LonH 0x4a // Longitude High Byte 00063 #define LatL 0x4b // Latitude Low Byte 00064 #define LatH 0x4c // Latitude High Byte 00065 #define GPSHeight 0x4d // GPS Height 00066 #define GPSYaw 0x4e // GPS Yaw 00067 #define GPSVL 0x4f // GPS speed Low byte 00068 #define GPSVH 0x50 // GPS speed High byte 00069 #define Q0 0x51 // Quaternion Q0 00070 #define Q1 0x52 // Quaternion Q1 00071 #define Q2 0x53 // Quaternion Q2 00072 #define Q3 0x54 // Quaternion Q3 00073 00074 #endif
Generated on Thu Jul 21 2022 18:57:01 by
1.7.2