forked from xxyyttxx/Quadcopter
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
92 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#ifndef __GPIO_HMC5883_H | ||
#define __GPIO_HMC5883_H | ||
|
||
#include <stdint.h> // u8 define in stm32f4xx.h for legacy | ||
extern short magX, magY, magZ; | ||
extern float magX_off, magY_off, magZ_off; | ||
extern float magX_cc, magY_cc, magZ_cc; | ||
extern short magRange0,magRange1,magRange2,magRange3,magRange4,magRange5; | ||
extern short magX, magY, magZ; | ||
extern float magX_off, magY_off, magZ_off; | ||
extern float magX_cc, magY_cc, magZ_cc; | ||
extern short magRange0, magRange1, magRange2, magRange3, magRange4, magRange5; | ||
|
||
void InitHMC5883(void); | ||
void hmc_get_off(float mx, float my, float mz); | ||
void hmc_correct(void); | ||
void updateHMC5883(void); | ||
|
||
void InitHMC5883(void); | ||
void hmc_get_off(float mx, float my, float mz); | ||
void hmc_correct(void); | ||
void updateHMC5883(void); | ||
|
||
#endif /* __GPIO_HMC5883_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters