mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.2 runningAngle
This commit is contained in:
parent
b8a1b07a7d
commit
3656f18941
@ -22,9 +22,9 @@ void setup()
|
||||
test1();
|
||||
test2();
|
||||
test3();
|
||||
|
||||
}
|
||||
|
||||
|
||||
void loop()
|
||||
{
|
||||
}
|
||||
@ -101,6 +101,7 @@ void test2()
|
||||
delay(10);
|
||||
}
|
||||
|
||||
|
||||
void test3()
|
||||
{
|
||||
Serial.println("\nTEST 100x ADD 10000 RANDOM ANGLES");
|
||||
@ -120,4 +121,5 @@ void test3()
|
||||
delay(10);
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
7
libraries/runningAngle/examples/time-add/.arduino-ci.yml
Normal file
7
libraries/runningAngle/examples/time-add/.arduino-ci.yml
Normal file
@ -0,0 +1,7 @@
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
- uno
|
||||
- leonardo
|
||||
# - due
|
||||
# - zero
|
@ -15,7 +15,8 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/runningAngle.git"
|
||||
},
|
||||
"version":"0.1.1",
|
||||
"version": "0.1.2",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=runningAngle
|
||||
version=0.1.1
|
||||
version=0.1.2
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Library to average angles by means of low pass filtering with wrapping.
|
||||
|
@ -1,15 +1,16 @@
|
||||
//
|
||||
// FILE: runningAngle.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.1
|
||||
// VERSION: 0.1.2
|
||||
// PURPOSE: Library to average angles by means of low pass filtering with wrapping.
|
||||
// URL: https://github.com/RobTillaart/runningAngle
|
||||
// RELATED: https://github.com/RobTillaart/AverageAngle
|
||||
//
|
||||
|
||||
// HISTORY:
|
||||
// 0.1.0 2020-10-28 initial version (based on code of Edgar Bonet)
|
||||
// 0.1.0 2020-10-28 initial version (based on code of Edgar Bonet)
|
||||
// 0.1.1 2021-01-07 arduino-ci + unit test
|
||||
// 0.1.2 2021-05-27 Arduino-lint
|
||||
|
||||
|
||||
#include "runningAngle.h"
|
||||
@ -57,4 +58,5 @@ float runningAngle::wrap(float angle)
|
||||
return angle;
|
||||
}
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: runningAngle.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.1
|
||||
// VERSION: 0.1.2
|
||||
// PURPOSE: Library to average angles by means of low pass filtering with wrapping.
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#include "math.h"
|
||||
|
||||
|
||||
#define RUNNING_ANGLE_LIB_VERSION (F("0.1.1"))
|
||||
#define RUNNING_ANGLE_LIB_VERSION (F("0.1.2"))
|
||||
|
||||
|
||||
class runningAngle
|
||||
@ -40,4 +40,5 @@ private:
|
||||
bool _reset;
|
||||
};
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
|
@ -38,6 +38,7 @@ unittest_setup()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
unittest_teardown()
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user