mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-05 18:01:21 +08:00
Update idm.c
This commit is contained in:
@@ -62,13 +62,13 @@ static void nrt_init(void *ctx_ptr, hal_pin_inst_t *pin_ptr) {
|
||||
PIN(ji) = 10.0;
|
||||
PIN(pos_bw) = 5.0;
|
||||
PIN(vel_bw) = 40.0;
|
||||
PIN(vel_d) = 2.0;
|
||||
PIN(vel_d) = 4.0;
|
||||
PIN(max_vel) = 25.0;
|
||||
PIN(max_acc) = 250.0;
|
||||
PIN(min_pos) = -10.0;
|
||||
PIN(max_pos) = 10.0;
|
||||
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) {
|
||||
@@ -292,4 +292,4 @@ hal_comp_t idm_comp_struct = {
|
||||
.frt_stop = 0,
|
||||
.ctx_size = 0,//sizeof(struct idm_ctx_t),
|
||||
.pin_count = sizeof(struct idm_pin_ctx_t) / sizeof(struct hal_pin_inst_t),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user