Commit Graph

31 Commits

Author SHA1 Message Date
Mateusz Pusz
37473eb8ad refactor: core-io and core-fmt separate modules added 2021-03-17 13:46:28 +01:00
Mateusz Pusz
221883bb25 build: core library and each system separated to dedicated CMake targets
Refers to #249
2021-03-16 23:05:45 +01:00
Mateusz Pusz
625f452daa build: libc++ support added 2021-03-15 21:11:26 +01:00
Mateusz Pusz
069712b222 fix: Visual Studio caught up with terse form of constraints 2021-03-12 23:06:11 +01:00
Mateusz Pusz
cdba0cdbc4 refactor: glide_computer refactored and extended with geographical coordinates 2021-02-26 14:10:36 +01:00
Mateusz Pusz
8f04bd9cfe build: mp::units CMake target was a bad idea -> mp-units::mp-units is back 2021-02-15 17:06:09 +01:00
Mateusz Pusz
d3f20e22a3 build: Linear Algebra temporarily removed from MSVC build 2020-12-22 15:31:02 +01:00
Mateusz Pusz
a172f34684 build: Minimum CMake version required set for each file based on its contents 2020-12-21 22:56:00 +01:00
Mateusz Pusz
206712f046 build: Library renamed to mp::units 2020-12-17 23:06:37 +01:00
Mateusz Pusz
c5919d2cd8 build: Conan generator changed to provide more transparent dependency handling 2020-12-09 18:49:39 +01:00
Mateusz Pusz
a0beeb48b1 feat: custom systems examples added 2020-09-10 21:17:43 +02:00
Mateusz Pusz
563b358d5e feat!: 💥 dimensionless quantities refactored
Dimensionless quantities are now represented by quantity types rather
than by plain representation types. Only dimensionless quantities with
`unitless` unit are implicitly convertible from representation types.

`units::exp()` now is a function doing std::exp() on a representation
type (previous `units::exp` class template was renamed to
`units::exponent`).

BREAKING_CHANGE: gcc-9.3 support removed
BREAKING_CHANGE: `exp` and `Exp` renamed to `exponent` and `Exponent`
Resolves #27
Resolves #42
2020-09-08 11:02:16 +02:00
Mateusz Pusz
32779e01f0 Build system refactored to be comatible with ConanCenter 2020-09-06 00:00:06 +02:00
Mateusz Pusz
b318e8d039 VS2019 support added 2020-09-04 23:06:57 +02:00
Mateusz Pusz
f55eacfa85 glide_computer example added 2020-06-21 10:37:45 +02:00
Mike Ford
aa84dcb9ef added example and some more units to fps system 2020-06-16 15:14:46 +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
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
Mateusz Pusz
9afcf9e695 Linear Algebra support added 2020-03-25 15:57:53 +01:00
Mateusz Pusz
e122d6baae avg_velocity renamed to avg_speed 2020-03-09 18:56:18 +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
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
Andy Little
868842bd46 Third party examples : add box example
Add si::density quantity header .
Add si::resistance quantity header.
Update si::capacitance header with mF, uF, nF, pF.
Update si::voltage header with mV, uV, nV,pV
Third party example : add capacitor time curve example
Add incoherent length units, TODO  move them out from si header.
Third party examples : add clcpp_response showing effectivenes of typed units for physical quantity library
Third party examples : add conversion factor example
Add third party examples to cmake

Third party examples : box example : Add air_density constant for clarity remove explicit this-> and tidy up.
Third party examples : in clcpp response example, change base unit from km to m for single type or all units example.
Third party examples : conversion_factor , add inline constexpr to units_str function.
Third party examples : box_example, change quantity::unit syntax to quantity::unit<> to allow generic(default double) value_type.
examples : remove examples from third party to main examples directory. Update cmake.
physical/si/resistance.hpp : remove underscores from kiloohm etc, UDL collision with 'R' so prefix with underscore
2020-01-12 21:34:36 +01:00
Mateusz Pusz
75081bf566 hello_units example added 2019-12-17 10:48:54 +01:00
Mateusz Pusz
f31b26b5e5 Design cleanup
- unknown_unit added
- examples refactored
- base_type renamed to downcast_base_type
- scaled_unit renamed to named_scaled_unit
- detail::reference_unit renamed to scaled_unit
- quantity_test cleanup
2019-12-06 12:18:39 +01:00
Mateusz Pusz
fbbb28fdfd measurement example added 2019-11-16 18:30:44 +01:00
Mateusz Pusz
125ecc56c8 units package renamed to mp-units/mp::units 2019-04-07 08:33:13 +02:00
Mateusz Pusz
8d86d9401f units building and packaging redesigned + Travis CI support 2019-04-06 23:25:35 +02:00
Mateusz Pusz
4b376e3c2e Initial version 2018-08-22 12:11:19 +02:00