Skip to content
Snippets Groups Projects
Commit e9fb7837 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Merge branch 'units-update' into 'master'

Update units

See merge request corryvreckan/corryvreckan!191
parents e7c49f3c 130876dd
No related branches found
No related tags found
No related merge requests found
......@@ -231,8 +231,8 @@ void Corryvreckan::add_units() {
// CHARGE
Units::add("e", 1);
Units::add("ke", 1e3);
Units::add("fC", 1 / 1.6021766208e-4);
Units::add("C", 1 / 1.6021766208e-19);
Units::add("fC", 1 / 1.602176634e-4);
Units::add("C", 1 / 1.602176634e-19);
// VOLTAGE
// NOTE: fixed by above
......@@ -245,7 +245,7 @@ void Corryvreckan::add_units() {
// ANGLES
// NOTE: these are fake units
Units::add("deg", 0.01745329252);
Units::add("deg", 3.14159265358979323846 / 180.0);
Units::add("rad", 1);
Units::add("mrad", 1e-3);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment