Merge remote-tracking branch 'refs/remotes/origin/...
by Nick 7 years 6 months
Merge remote-tracking branch 'refs/remotes/origin/dev-quantity'
41aa2f5b
Quantity class & interface is finalised and ready ...
by Nick 7 years 6 months
Quantity class & interface is finalised and ready for use

* Removed "packed" attribute from several classes to optimise
performance
* Fixed range conversion bug in Quantity
* Fixed multiple bugs in util::Ref and util::StrRef
* Added print method to util::StrRef
* Improved some tests for util::Quantity
* Added tests for util::Ref and util::StrRef
8fe0c5f9
Interface for Module input/output interaction
by Nick 7 years 6 months
Interface for Module input/output interaction

* Interface provided for Module to be able to get/set inputs and outputs
* Module input/output data are Quantities
* Quantity usage reconsidered; Quantity and its child classes optimised
* Tests for Quantity and its child updated
* Reflection mechanism optimised
* Simplified the function to verify whether the reflected class is of
correct type
* Quantity does not store strings in its object anymore and is much more
memory-efficient
* Ref class is introduced as universal pointer (contains pointer along
with ram/progmem memory area designation).
* StrRef class is introduced as universal c-string pointer
c614726b
Improved Quantity reflection and added more test
by Nick 7 years 7 months
Improved Quantity reflection and added more test

* Added more constructor tests for Quantity (including nullptr passed as
char * parameter to constructor)
* Set reflection mechanism on the right track
* Added tests for reflection
bab58754
Quantity class improvement
by Nick 7 years 7 months
Quantity class improvement

* Added introspection and reflection to Quantity class
* Added test for Quantity class
* Added comments for Quantity class
b85525c5
Added Quantity class
by Nick 7 years 7 months
Added Quantity class

* Added a basic Quantity class which is to represent a physical
quantity, such as temperature, pressure, humidity, etc.
* Added tests for Quantity and child classes
* Moved Value and Timestamp into util from util::dsp
91848590
Fixed ADC calibration bug
by Nick 7 years 8 months
Fixed ADC calibration bug

Fixed a bug which caused incorrect calibration data to calculate
incorrectly for CO2 concentration
(https://github.com/nnaumenko/iot_ambit/issues/21).
912904eb
Rebuilt ot fix Krack WPA2 vulnerability
by Nick 7 years 8 months
Rebuilt ot fix Krack WPA2 vulnerability

* Updated binary: rebuild using Arduino Core pre-release 2.4.0-rc2 which
has Krack WPA2 vulnerability patched
(https://github.com/esp8266/Arduino/issues/3725).
* Minor style fixes in Doxygen comments
07a25ecf
Added DSP filters
by Nick 7 years 11 months
Added DSP filters

Preparing to substitute FixedPoint for float.
* Added abstract DSP filter
* Added MovingAverage, LowPass, LinearScale, SquareScale and SplineScale
filters to filter and linearise analog signals
* FixedPoint can now be initialised from a string
* Fixed FixedPoint constructor (previously it was impossible to init a
FixedPoint variable if zero follows decimal point)
* Minor improvements to FixedPoint
d2b95d3a
Added FixedPoint and crc16
by Nick 8 years 2 weeks
Added FixedPoint and crc16

Added checksum calculation as CRC16
Added FixedPoint class for fixed-point calculations in order to
eventually replace floating-point analog value calculations:
* Arithmetic (+, -, *, /, +=, -=, *=, /=) and logical (<, <=, >, >=, !=,
==) operators are defined
* Assignment operator and copy constructor are defined
* Can be intialised with integer and decimal fraction (e.g. Pi =
FixedPoint (3, 14159265))
* Range-safe, fixed point value overflow during operations
bc28f0e0
Report a bug