1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*******************************************************************************************
- * @file schedule.c
- *
- * @brief 小车任务调度
- *
- * (c) Copyright 2021, Shandong Huali electromechanical Co., Ltd..
- * This is protected by international copyright laws. Knowledge of the
- * source code may not be used to write a similar product. This file may
- * only be used in accordance with a license and should not be redistributed
- * in any way. We appreciate your understanding and fairness.
- *
- *
- * @author Simon
- * @date Created: 2021.06.17-T14:17:03+0800
- *
- *******************************************************************************************/
- #include "stdint.h"
- #include "wcs.h"
- #include "task_scheduler.h"
- int sch_trajectory(uint8_t task_id, uint8_t seg_no, wcs_point_t *point)
- {
- // uint8_t i;
- // uint8_t point_x;
- // for(i = 0; i < seg_no; i++)
- // {
- // point_x = point[i].x;
- // point[i].x = point[i].y;
- // point[i].y = point_x;
- // }
- return task_add_trajectory(task_id, seg_no, (point_t *)point);
- }
- int sch_target(uint8_t task_id, uint8_t seg_no)
- {
- return task_set(task_id, seg_no);
- }
- int sch_get_status(void)
- {
- return task_get_status();
- }
|