bd_manage_from_cs(&mainboard.left_cobroller.bd, &mainboard.left_cobroller.cs);
bd_manage_from_cs(&mainboard.right_cobroller.bd, &mainboard.right_cobroller.cs);
if (mainboard.flags & DO_ERRBLOCKING) {
- if (bd_get(&mainboard.left_cobroller.bd) ||
- bd_get(&mainboard.left_cobroller.bd)) {
- printf_P(PSTR("MOTOR BLOCKED STOP ALL\r\n"));
- mainboard.flags &= ~(DO_POWER | DO_ERRBLOCKING);
- }
+/* if (bd_get(&mainboard.left_cobroller.bd) || */
+/* bd_get(&mainboard.left_cobroller.bd)) { */
+/* printf_P(PSTR("MOTOR BLOCKED STOP ALL\r\n")); */
+/* mainboard.flags &= ~(DO_POWER | DO_ERRBLOCKING); */
+/* } */
}
#endif
}
#ifdef HOST_VERSION
if ((cpt & 7) == 0) {
- // dump_cs("dist", &mainboard.distance.cs);
robotsim_dump();
}
#endif
position_init(&mainboard.pos);
position_set_physical_params(&mainboard.pos, VIRTUAL_TRACK_MM, DIST_IMP_MM);
position_set_related_robot_system(&mainboard.pos, &mainboard.rs);
- // position_set_centrifugal_coef(&mainboard.pos, 0.000016);
+ position_set_centrifugal_coef(&mainboard.pos, 0.000016);
position_use_ext(&mainboard.pos);
/* TRAJECTORY MANAGER */
mainboard.left_cobroller.on = 1;
mainboard.right_cobroller.on = 1;
-
scheduler_add_periodical_event_priority(do_cs, NULL,
5000L / SCHEDULER_UNIT,
CS_PRIO);
+
}