Skip to content

Commit

Permalink
Merge pull request #22 from mprograms/1.2.x
Browse files Browse the repository at this point in the history
1.2.x
  • Loading branch information
mprograms authored Aug 3, 2023
2 parents 9ee1ce1 + 72c4605 commit b869a4f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.2.0]
### Changed
- Core Calibration has been modified and been moved to the class. Example sketch has been updated as well. (Contrib by paulosincos)
- Calibration var calibrationData has been seeded with default values. (Contrib by ATsaruk)
- Updates to documentation.

## [v1.1.1]
### Changed
- Fixed version number in library.properties
Expand Down Expand Up @@ -46,4 +52,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [v0.0.1]
### Added
- Initial creation.
- Initial creation.
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name=QMC5883LCompass
version=1.1.1
version=1.2.0
author=MPrograms
maintainer=MPrograms
sentence=Library for using QMC5583L series chip boards as a compass.
paragraph=QMC5883L Compass is a Arduino library for using QMC5583L series chip boards as a compass.
category=Sensors
url=https://github.com/mprograms/QMC5883LCompass
architectures=*
includes=QMC5883LCompass.h
includes=QMC5883LCompass.h
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,5 @@ It is recommended that you use the provided calibration sketch to generate your
Special thanks is given to the following individuals who have contributed to this library:

- Claus Näveke : [TheNitek](https://github.com/TheNitek) for adding calibration functions to the library.
- Paulo C. B. Sincos : [paulosincos](https://github.com/paulosincos)https://github.com/paulosincos) for enhancements to the calibration script.
- ATsaruk : [ATsaruk](https://github.com/ATsaruk) for enhancements to the calibration script.
4 changes: 2 additions & 2 deletions src/QMC5883LCompass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void QMC5883LCompass::setSmoothing(byte steps, bool adv){

void QMC5883LCompass::calibrate() {
clearCalibration();
int calibrationData[3][2];
int calibrationData[3][2] = {{65000, -65000}, {65000, -65000}, {65000, -65000}};
int x = calibrationData[0][0] = calibrationData[0][1] = getX();
int y = calibrationData[1][0] = calibrationData[1][1] = getY();
int z = calibrationData[2][0] = calibrationData[2][1] = getZ();
Expand Down Expand Up @@ -463,4 +463,4 @@ void QMC5883LCompass::getDirection(char* myArray, int azimuth){
myArray[0] = _bearings[d][0];
myArray[1] = _bearings[d][1];
myArray[2] = _bearings[d][2];
}
}

0 comments on commit b869a4f

Please sign in to comment.