Request: FrequencyShift
jossriLDR opened this issue · comments
jossriLDR commented
For radar data processing "frequency slope" is a commonly used quantity, especially in FMCW radars.
It is also listed here as 'frequency drift": https://en.wikipedia.org/wiki/SI_derived_unit#Examples_of_derived_quantities_and_units
In my application I defined it like this:
use uom::{Kind, typenum::{N2, int::Z0}, si::{Quantity, ISQ, SI}};
type FrequencyDrift = Quantity<ISQ<Z0, Z0, N2, Z0, Z0, Z0, Z0, dyn Kind + 'static>, SI<f64>, f64>;
But it does not implement new()
or any unit of course. From the documentation I do not understand how properly add a new quantity.
How do I add this properly? Maybe even with some commonly used units like hertz_per_second
, megahertz_per_microsecond
.
Mike Boutin commented