1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-26 02:22:25 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Nico Stute
fb23ed3176
Update idm.c 2022-04-22 02:08:55 +02:00
Nico Stute
b3a66a4ddd
Update id_mot.txt 2022-04-22 02:08:02 +02:00
2 changed files with 7 additions and 4 deletions

View File

@ -19,6 +19,9 @@ pid0.vel_d = idm0.vel_d
idm0.torque = pid0.torque_cmd idm0.torque = pid0.torque_cmd
idm0.fb_torque = pid0.fb_torque_cmd idm0.fb_torque = pid0.fb_torque_cmd
vel1.torque = 0
vel2.torque = 0
conf0.max_pos_error = 0 conf0.max_pos_error = 0
conf0.max_sat = 10 conf0.max_sat = 10
conf0.vel_g = 1 conf0.vel_g = 1

View File

@ -62,13 +62,13 @@ static void nrt_init(void *ctx_ptr, hal_pin_inst_t *pin_ptr) {
PIN(ji) = 10.0; PIN(ji) = 10.0;
PIN(pos_bw) = 5.0; PIN(pos_bw) = 5.0;
PIN(vel_bw) = 40.0; PIN(vel_bw) = 40.0;
PIN(vel_d) = 2.0; PIN(vel_d) = 4.0;
PIN(max_vel) = 25.0; PIN(max_vel) = 25.0;
PIN(max_acc) = 250.0; PIN(max_acc) = 250.0;
PIN(min_pos) = -10.0; PIN(min_pos) = -10.0;
PIN(max_pos) = 10.0; PIN(max_pos) = 10.0;
PIN(auto_step) = 1.4; PIN(auto_step) = 1.4;
PIN(inertia) = 0.0001; PIN(inertia) = 0.0002;
} }
static void nrt(void *ctx_ptr, hal_pin_inst_t *pin_ptr) { static void nrt(void *ctx_ptr, hal_pin_inst_t *pin_ptr) {