UDL naming refactored
This commit is contained in:
1 parent
d67eabf310
commit
6a5f25750d
22 files changed
+93
-93
No files matched your search
@@ -102,7 +102,7 @@ using namespace units::si::literals;
|
||||
int main()
|
||||
{
|
||||
auto box = Box{1000.0q_mm, 500.0q_mm, 200.0q_mm};
|
||||
box.set_contents_density(1000.0q_kgpm3);
|
||||
box.set_contents_density(1000.0q_kg_per_m3);
|
||||
|
||||
auto fill_time = 200.0q_s; // time since starting fill
|
||||
auto measured_mass = 20.0q_kg; // measured mass at fill_time
|
||||
|
||||
@@ -25,7 +25,7 @@ inline constexpr auto g = si::standard_gravity;
|
||||
} // namespace
|
||||
|
||||
struct Box {
|
||||
static constexpr auto air_density = 1.225q_kgpm3;
|
||||
static constexpr auto air_density = 1.225q_kg_per_m3;
|
||||
|
||||
si::length<m> length;
|
||||
si::length<m> width;
|
||||
@@ -66,7 +66,7 @@ struct Box {
|
||||
int main()
|
||||
{
|
||||
auto box = Box(1000.0q_mm, 500.0q_mm, 200.0q_mm);
|
||||
box.set_contents_density(1000.0q_kgpm3);
|
||||
box.set_contents_density(1000.0q_kg_per_m3);
|
||||
|
||||
const auto fill_time = 200.0q_s; // time since starting fill
|
||||
const auto measured_mass = 20.0q_kg; // measured mass at fill_time
|
||||
|
||||
@@ -65,7 +65,7 @@ int main()
|
||||
if(track.size() > 0) {
|
||||
// We need an initial estimate of track[0] as there is no previous state to get a prediction from
|
||||
track[0].range.estimated_current_state = 30'000q_m;
|
||||
track[0].speed.estimated_current_state = 40.0q_mps;
|
||||
track[0].speed.estimated_current_state = 40.0q_m_per_s;
|
||||
}
|
||||
|
||||
for (auto n = 0U; n < num_measurements; ++n) {
|
||||
|
||||
Reference in new issue
Block a user