Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
hmc5883.h
Go to the documentation of this file.
1 /*
2  * hmc5883.c
3  *
4  * Created : 11/13/2018
5  * Author : n-is & ane
6  * email : 073bex421.nischal@pcampus.edu.np
7  * email : 073bex422.nischal@pcampus.edu.np
8  */
9 
10 #ifndef _HMC5883_H_
11 #define _HMC5883_H_
12 
13 #include "i2c.h"
14 #include "vec3.h"
15 #include "a4988.h"
16 
17 struct HMC5883
18 {
19  I2C_HandleTypeDef *hi2c;
21  uint8_t address;
23 };
24 
25 int8_t HMC5883_Init(struct HMC5883 *compass);
26 int8_t HMC5883_Read(struct HMC5883 *compass);
27 
28 void HMC5883_Calibrate(struct HMC5883 *hmc, struct A4988 *stpr, uint32_t n);
29 
30 #endif // !_HMC5883_H_
void HMC5883_Calibrate(struct HMC5883 *hmc, struct A4988 *stpr, uint32_t n)
Definition: hmc5883.cpp:53
I2C_HandleTypeDef * hi2c
Definition: hmc5883.h:19
int8_t HMC5883_Read(struct HMC5883 *compass)
Definition: hmc5883.cpp:34
Vec3< float > hard_iron_offset
Definition: hmc5883.h:22
Definition: a4988.h:15
Vec3< float > raw_axis
Definition: hmc5883.h:20
uint8_t address
Definition: hmc5883.h:21
int8_t HMC5883_Init(struct HMC5883 *compass)
Definition: hmc5883.cpp:17
Definition: hmc5883.h:17