Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate in configs #87

Open
Phibedy opened this issue Jan 25, 2016 · 4 comments
Open

Calculate in configs #87

Phibedy opened this issue Jan 25, 2016 · 4 comments
Labels

Comments

@Phibedy
Copy link
Member

Phibedy commented Jan 25, 2016

Calculate in configs,

<config>
 <a>6*4+7</a>
 <a>6^2+7</a>
<fancy>4rad*20degree</fancy>
<awesome>5m+3cm+4mm</awesome>
<legendary>5m*3cm + 2m^2</legendary>
</config>

The framework would calculate in SI-units and rad

@syxolk
Copy link
Member

syxolk commented Jan 28, 2016

Units to convert:

  • Time (SI: seconds): us, ms, s, h, m
  • Distance (SI: meter): mm, cm, m
  • Angle (SI: radiant): rad, deg

@Phibedy
Copy link
Member Author

Phibedy commented Jan 28, 2016

We could also add some constants: https://en.wikipedia.org/wiki/Physical_constant

  • pressure hPa, bar, mbar etc.
  • percent %
  • temperature grad,
    We could also add a unit-tag. For example
<a unit="mbar/K*J>5cm</a>

We should remove lconfs

@syxolk
Copy link
Member

syxolk commented Jan 28, 2016

<config id="environment">
  <unit name="street_width">12m</unit>
</config>

<module>
  <config>
    <int name="id">12</int>
    <raw src="lookup_table.csv" />
    <int name="road_width">${street_width} / 2</int>
  </config>
  <config use="environment" />
</module>

@Phibedy Phibedy added idea and removed enhancement labels Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants