Almost done trapezioidal model

This commit is contained in:
eddyem
2025-04-11 22:14:43 +03:00
parent 33d7800a62
commit 89d67fd95c
5 changed files with 246 additions and 27 deletions

View File

@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <math.h>
#include <stdio.h>
#include <usefull_macros.h>
#include <pthread.h>
@@ -57,7 +58,7 @@ static void* thread(void _U_ *u){
//pthread_mutex_lock(&mutex);
movestate_t curstate = model->get_state(NULL);
moveparam_t curmove;
if(curstate != ST_STOP && curstate != ST_ERROR){
if(curstate == ST_MOVE){
curstate = model->proc_move(&curmove, t);
}
//pthread_mutex_unlock(&mutex);