0.2.1 AverageAngle

This commit is contained in:
Rob Tillaart 2023-10-17 19:38:03 +02:00
parent 1ec5fc8bd3
commit e7befae33b
7 changed files with 30 additions and 11 deletions

View File

@ -1,9 +1,9 @@
// //
// FILE: AverageAngle.cpp // FILE: AverageAngle.cpp
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.2.0 // VERSION: 0.2.1
// DATE: 2017-11-21 // DATE: 2017-11-21
// PURPOSE: class for averaging angles // PURPOSE: Arduino library to calculate correctly the average of multiple angles.
// URL: https://github.com/RobTillaart/AverageAngle // URL: https://github.com/RobTillaart/AverageAngle

View File

@ -2,9 +2,9 @@
// //
// FILE: AverageAngle.h // FILE: AverageAngle.h
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.2.0 // VERSION: 0.2.1
// DATE: 2017-11-21 // DATE: 2017-11-21
// PURPOSE: class for averaging angles. // PURPOSE: Arduino library to calculate correctly the average of multiple angles.
#include "math.h" #include "math.h"

View File

@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.1] - 2023-10-17
- update readme.md
- update keywords.txt
## [0.2.0] - 2023-02-01 ## [0.2.0] - 2023-02-01
- add experimental OVERFLOW detection in **add()** - add experimental OVERFLOW detection in **add()**
- add **lastError()** - add **lastError()**

View File

@ -2,8 +2,11 @@
[![Arduino CI](https://github.com/RobTillaart/AverageAngle/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino CI](https://github.com/RobTillaart/AverageAngle/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![Arduino-lint](https://github.com/RobTillaart/AverageAngle/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/AverageAngle/actions/workflows/arduino-lint.yml) [![Arduino-lint](https://github.com/RobTillaart/AverageAngle/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/AverageAngle/actions/workflows/arduino-lint.yml)
[![JSON check](https://github.com/RobTillaart/AverageAngle/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/AverageAngle/actions/workflows/jsoncheck.yml) [![JSON check](https://github.com/RobTillaart/AverageAngle/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/AverageAngle/actions/workflows/jsoncheck.yml)
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/AverageAngle.svg)](https://github.com/RobTillaart/AverageAngle/issues)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/AverageAngle/blob/master/LICENSE) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/AverageAngle/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RobTillaart/AverageAngle.svg?maxAge=3600)](https://github.com/RobTillaart/AverageAngle/releases) [![GitHub release](https://img.shields.io/github/release/RobTillaart/AverageAngle.svg?maxAge=3600)](https://github.com/RobTillaart/AverageAngle/releases)
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/AverageAngle.svg)](https://registry.platformio.org/libraries/robtillaart/AverageAngle)
# AverageAngle # AverageAngle
@ -165,7 +168,7 @@ just change the type runtime.
#### Must #### Must
- investigate if and how the internal math can be made more robust against overflow. - investigate if and how the internal math can be made more robust against overflow.
- use double iso float (will work on certain platforms) (must) - use double instead of float (will work on certain platforms) (must) => 0.3.0
- uint32_t? - uint32_t?
- accuracy threshold depends on float/double usage. (sizeof(double)==8) - accuracy threshold depends on float/double usage. (sizeof(double)==8)
- threshold depends on the units of length. - threshold depends on the units of length.
@ -193,3 +196,12 @@ just change the type runtime.
#### Wont #### Wont
## Support
If you appreciate my libraries, you can support the development and maintenance.
Improve the quality of the libraries by providing issues and Pull Requests, or
donate through PayPal or GitHub sponsors.
Thank you,

View File

@ -26,7 +26,9 @@ DEGREES LITERAL1
RADIANS LITERAL1 RADIANS LITERAL1
GRADIANS LITERAL1 GRADIANS LITERAL1
GRAD_TO_RAD LITERAL1
RAD_TO_GRAD LITERAL1
AVERAGE_ANGLE_OK LITERAL1 AVERAGE_ANGLE_OK LITERAL1
AVERAGE_ANGLE_OVERFLOW LITERAL1 AVERAGE_ANGLE_OVERFLOW LITERAL1
AVERAGE_ANGLE_SINGULARITY LITERAL1 AVERAGE_ANGLE_SINGULARITY LITERAL1

View File

@ -1,7 +1,7 @@
{ {
"name": "AverageAngle", "name": "AverageAngle",
"keywords": "Angle,average,RADIANS,DEGREES,GRADIANS,heading", "keywords": "Angle,average,RADIANS,DEGREES,GRADIANS,heading",
"description": "Library to average angles.", "description": "Arduino library to calculate correctly the average of multiple angles.",
"authors": "authors":
[ [
{ {
@ -15,9 +15,9 @@
"type": "git", "type": "git",
"url": "https://github.com/RobTillaart/AverageAngle.git" "url": "https://github.com/RobTillaart/AverageAngle.git"
}, },
"version": "0.2.0", "version": "0.2.1",
"license": "MIT", "license": "MIT",
"frameworks": "arduino", "frameworks": "*",
"platforms": "*", "platforms": "*",
"headers": "AverageAngle.h" "headers": "AverageAngle.h"
} }

View File

@ -1,8 +1,8 @@
name=AverageAngle name=AverageAngle
version=0.2.0 version=0.2.1
author=Rob Tillaart <rob.tillaart@gmail.com> author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com> maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Library to average angles correctly around 0. sentence=Arduino library to calculate correctly the average of multiple angles.
paragraph= degrees radians gradians paragraph= degrees radians gradians
category=Data Processing category=Data Processing
url=https://github.com/RobTillaart/AverageAngle url=https://github.com/RobTillaart/AverageAngle