fixed time

This commit is contained in:
2025-11-01 15:02:11 +03:00
parent 27a7388164
commit f6edc12b01
18 changed files with 139 additions and 76 deletions

View File

@@ -63,6 +63,11 @@ int model_move2(movemodel_t *model, moveparam_t *target, double t){
DBG("MOVE to %g at speed %g", target->coord, target->speed);
// only positive velocity
if(target->speed < 0.) target->speed = -target->speed;
if(fabs(target->speed) < model->Min.speed){
DBG("STOP");
model->stop(model, t);
return TRUE;
}
// don't mind about acceleration - user cannot set it now
return model->calculate(model, target, t);
}