Switching the UnitsApi to the new Quantity system
This commit is contained in:
@@ -129,14 +129,14 @@ int WaypointPy::PyInit(PyObject* args, PyObject* kwd)
|
||||
getWaypointPtr()->Velocity = 0;
|
||||
}
|
||||
else
|
||||
getWaypointPtr()->Velocity = Base::UnitsApi::toDblWithUserPrefs(Base::Velocity,vel);
|
||||
getWaypointPtr()->Velocity = Base::UnitsApi::toDbl(vel,Base::Unit::Velocity);
|
||||
getWaypointPtr()->Cont = cont?true:false;
|
||||
getWaypointPtr()->Tool = tool;
|
||||
getWaypointPtr()->Base = base;
|
||||
if(acc == 0)
|
||||
getWaypointPtr()->Accelaration = 100;
|
||||
else
|
||||
getWaypointPtr()->Accelaration = Base::UnitsApi::toDblWithUserPrefs(Base::Acceleration,acc);;
|
||||
getWaypointPtr()->Accelaration = Base::UnitsApi::toDbl(acc,Base::Unit::Acceleration);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user