Пример #1
0
void control_system_start()
{
  //control_system_init_motors(am);
  control_system_init_distance_angle();

  xTaskCreate(control_system_task, (const signed char *)"ControlSystem", 250, NULL, 1, NULL);
}
Пример #2
0
void control_system_start(struct control_system *am)
{
#ifdef USE_MOTOR_SPEED_CS
  control_system_init_motors(am);
#endif
#ifdef USE_DISTANCE_ANGLE_CS
  control_system_init_distance_angle(am);
#endif

  xTaskCreate(control_system_task, (const signed char *)"ControlSystem", 200, (void *)am, 1, NULL);
}