Mateusz Pusz
f55eacfa85
glide_computer example added
2020-06-21 10:37:45 +02:00
Mike Ford
d4d5ad243c
minor fix in fps example
2020-06-17 14:56:32 +02:00
Mateusz Pusz
a3a12229d9
foot_pound_second example slightly refactored
2020-06-16 17:44:32 +02:00
Mateusz Pusz
4a46f44618
Merge branch 'master' of github.com:mpusz/units
2020-06-16 17:12:57 +02:00
Mike Ford
aa84dcb9ef
added example and some more units to fps system
2020-06-16 15:14:46 +02:00
Mateusz Pusz
fea072aeb5
warnings.cmake refactored
2020-05-29 10:07:01 +02:00
Mateusz Pusz
b65a5bf6b2
quantity_of_matrix_tests uncommented thanks to a fix in the LA library
2020-05-20 22:12:37 +02:00
Mateusz Pusz
735eb3354e
experimental_angle example compilation fixed on gcc-10
2020-05-20 22:12:03 +02:00
Andy Little
f281e417e2
Experimental branch using angle as a dimension.
...
Added dim_angle, Angle concept etc.
Not really for merging, but fun to play with.(The main problem is that it doesnt conform to SI)
See https://github.com/mpusz/units/issues/99
Could try adding degrees etc in same way as non-si units
2020-05-20 21:34:04 +02:00
Andy Little
51f3739e46
example linear_algebra : change deduced type of iterator index to unsigned type
2020-05-20 21:34:04 +02:00
Mateusz Pusz
80d67163c8
linear_algebra updated to 0.7.0/testing
2020-05-17 12:04:57 +02:00
Mateusz Pusz
bd7c421e32
linear_algebra switched to 0.6.0/stable
2020-05-17 11:02:25 +02:00
Mateusz Pusz
c6627ed20f
Compilation errors in LA example fixed
2020-05-10 22:40:54 +02:00
Mateusz Pusz
ce301748dd
Velocity renamed to Speed ( resolves #103 )
2020-05-10 17:31:47 +02:00
Mateusz Pusz
7e935a4108
Physical units put in the physical namespace (I am sorry)
2020-05-08 22:39:24 +02:00
Mateusz Pusz
68405ef7f6
Errors in CMake generator expressions fixed
2020-05-08 17:50:28 +02:00
Mateusz Pusz
d18480879d
Linking with Conan targets only when they exists ( resolves #98 )
2020-05-08 11:56:07 +02:00
Ramzi Sabra
f6d9a1cbda
removed c_str(), size(), operator<< abstractions from basic_symbol_text
2020-03-27 10:03:59 +01:00
Mateusz Pusz
36055208d1
Linear Algebra chapter added
2020-03-26 18:26:27 +01:00
Mateusz Pusz
4637985b7a
Quantity of matrix tests added
...
But commented out due to complier segfault.
2020-03-26 16:36:48 +01:00
Mateusz Pusz
73a2b30d65
Quantity of vector tests added
2020-03-25 22:40:59 +01:00
Mateusz Pusz
c2b851c92b
Linear algebra example updated
2020-03-25 17:27:45 +01:00
Mateusz Pusz
52e7f57c69
Measurement example updated
2020-03-25 16:30:08 +01:00
Mateusz Pusz
9afcf9e695
Linear Algebra support added
2020-03-25 15:57:53 +01:00
Andy Little
6b7e5893d2
examples, alternative namespaces : Part2 of put alternative namespace definitions in local headers.
...
examples, clcpp_response,alternative_namespaces::clcpp_response : use fmt functions for showing precision of quantities
examples, alternative namespaces : combined the alternative namespace quantity typedefs in header files.
examples, alternative namespaces : add simple timer example
2020-03-21 18:23:05 +01:00
Mateusz Pusz
45888ac44e
Physical constants support redesigned
2020-03-17 17:13:18 +01:00
Andy Little
f6ab0aaf17
examples,alternative namespaces : update box_example and put alternative namespace definitions in local headers
2020-03-12 16:37:49 +01:00
Andy Little
8ceb224908
example, kalman filter : remove #include <iomanip> sinc mpusz/units uses format syntax for io now
2020-03-12 16:36:12 +01:00
Andy Little
79f81bfe39
example, kalman filter : use constexpr std::array rather than std::vector for measurements and track,
...
to make it harder for compiler to complain about existence of first element.
2020-03-12 16:36:12 +01:00
Mateusz Pusz
6a5f25750d
UDL naming refactored
2020-03-10 20:53:53 +01:00
Mateusz Pusz
1865b92e90
Workaround for a stupid compiler reporting potential null-pointer dereference
2020-03-09 19:47:36 +01:00
Mateusz Pusz
e122d6baae
avg_velocity renamed to avg_speed
2020-03-09 18:56:18 +01:00
Mateusz Pusz
af6358fbdb
gcc-9 compilation fixed
2020-03-05 11:40:05 +01:00
Mateusz Pusz
4b33c0f7c5
Examples with an alternate way to create quantities refactored
...
- examples modified to provide a unified library look-and-feel
- originals moved to a dedicated subdirectory for further reference and comparison
2020-03-01 14:44:45 +01:00
Mateusz Pusz
0c5864cc87
Kalman filter slightly refactored + clang_format
2020-03-01 14:40:54 +01:00
Mateusz Pusz
63463e7a35
Total energy example slightly refactored
2020-02-24 20:46:21 +01:00
Mateusz Pusz
d53a5337f3
Total energy example extended with Natural Units
2020-02-24 19:16:28 +01:00
Mateusz Pusz
b9e7ffc90c
total_energy fixed for gcc-9
2020-02-24 14:12:38 +01:00
Mateusz Pusz
64248c0752
Total energy example added
2020-02-23 17:40:18 +01:00
Andy Little
065323c7d7
1d aircraft α-β filter ( kalman filter tutorial from https://www.kalmanfilter.net/alphabeta.html#ex2 ) converted to mpusz/units
2020-02-22 22:10:45 +01:00
Mateusz Pusz
0c89df3980
unknown_unit renamed to unknown_coherent_unit
2020-02-22 09:37:40 +01:00
Mateusz Pusz
18620044c5
All UDLs are now prefixed with q_
2020-02-17 15:56:06 +01:00
Mateusz Pusz
3be8ee921e
Starship improvements after the latest gcc fixes
2020-02-12 09:48:04 +01:00
Mateusz Pusz
3a76c1de91
gcc10 compilation error fixed in conversion example
2020-01-14 12:55:07 +01:00
Mateusz Pusz
15e656aba6
clang-format on new examples
2020-01-14 12:50:30 +01:00
Andy Little
024f5a9c83
change const order
...
move in,ft,fathom,ft2,ft3,mph from us to international namespace
TODO distinguish units with different names for same values
2020-01-12 21:34:36 +01:00
Andy Little
c93136e81b
physical/si/density : change UDL from kg_per_m3 to kgpm3 (and then fix example/box_example)
2020-01-12 21:34:36 +01:00
Andy Little
6ba2362af9
example , clcpp_response : clean up comments
2020-01-12 21:34:36 +01:00
Andy Little
3b0e445b4c
Remove sandbox.cpp from repo
...
Examples/clcpp_response.cpp : removed debug #defines
2020-01-12 21:34:36 +01:00
Andy Little
283e9d81a3
Split the various non-si length units into their own namespaces.
...
new namespaces are
international ( combination of us and imperial + Canada etc)
iau (https://www.iau.org/
imperial ( old imperial units)
typographical ( for sizes of printing fonts etc)
These namespace are based on some research , mainly on wikipedia.
Look in src/include/units/physical/si/length.h to see links to see the references to documentation justifying the change.
Unfortunately there are 3 foot units for example, an old imperial version, an old us version and an international version, which is more recent and attempts to unify the two previous ones. All versions have slight changes in value, so I opted to use the international version
The main change in the layout is that inch,foot and yard have been moved from us to international.
With this modification, I also modified the physical/us/area.hpp, volume.hpp and volume.hpp headers to refer to the international units.
This may not be correct, but if the modified us::foot (rather than international foot is used as a basis for these units, then
there is a ratio integer overflow during compilation, probably due to taking 3rd power of a ratio. After this commit. I will try to show that on another branch.
2020-01-12 21:34:36 +01:00