Task execution controller and recording medium on which task execution control program is recorded
First Claim
1. A task execution controller in which a first control task and a second control task having different cycles are periodically executed based on input data in a multitasking manner, execution results of the first and second control tasks are respectively output, and the first control task is executed using the execution result of the second control task as the input data, the task execution controller comprising:
- a processor;
a slot number calculation unit that calculates a current slot number based on the number of slots which are obtained by dividing a time axis at predetermined time intervals, the number of the slots being set to a value obtained by dividing a least common multiple of the cycles of the first and second control tasks by a greatest common divisor of the cycles of the first and second control tasks and then multiplying a result of division by a natural number n, and that stores the calculated current slot number in a first memory;
an output-time slot number storing unit that reads the current slot number stored in the first memory when each of the execution results of the first and second control tasks is output, and stores the read slot number in a second memory as a slot number at time of output of the execution result; and
a determination unit that obtains, when the first control task that requires the execution result of the second control task as the input data is activated, the slot number at time of output of the execution result of the second control task from the second memory, and that determines whether a time constraint is violated based on the obtained slot number and an input constraint condition in which a permissible slot number for the input data for the first control task is set in advance.
1 Assignment
0 Petitions
Accused Products
Abstract
A slot calculation unit calculates a current slot number and stores it in a slot storage unit. When each of control tasks of a recognition processing portion, a vehicle speed calculation portion, a brake control portion, and a steering control portion is activated, a slot number at the time of output of an execution result used as input data is obtained from a task table storage unit, and it is determined whether a time constraint is violated based on a permissible slot number for the input data, stored in a constraint table storage unit. When an execution result of each control task is output, the stored current slot number is read, and it is determined whether a time constraint is violated based on a permissible slot number for the output of the execution result, stored in the constraint table storage unit.
-
Citations
8 Claims
-
1. A task execution controller in which a first control task and a second control task having different cycles are periodically executed based on input data in a multitasking manner, execution results of the first and second control tasks are respectively output, and the first control task is executed using the execution result of the second control task as the input data, the task execution controller comprising:
-
a processor; a slot number calculation unit that calculates a current slot number based on the number of slots which are obtained by dividing a time axis at predetermined time intervals, the number of the slots being set to a value obtained by dividing a least common multiple of the cycles of the first and second control tasks by a greatest common divisor of the cycles of the first and second control tasks and then multiplying a result of division by a natural number n, and that stores the calculated current slot number in a first memory; an output-time slot number storing unit that reads the current slot number stored in the first memory when each of the execution results of the first and second control tasks is output, and stores the read slot number in a second memory as a slot number at time of output of the execution result; and a determination unit that obtains, when the first control task that requires the execution result of the second control task as the input data is activated, the slot number at time of output of the execution result of the second control task from the second memory, and that determines whether a time constraint is violated based on the obtained slot number and an input constraint condition in which a permissible slot number for the input data for the first control task is set in advance. - View Dependent Claims (2, 3, 4)
-
-
5. A task execution controller in which a first control task and a second control task having different cycles are periodically executed based on input data in a multitasking manner, execution results of the first and second control tasks are respectively output, and the first control task is executed using the execution result of the second control task as the input data, the task execution controller comprising:
-
a processor; a slot number calculation unit that calculates a current slot number based on the number of slots which are obtained by dividing a time axis at predetermined time intervals, the number of the slots being set to a value obtained by dividing a least common multiple of the cycles of the first and second control tasks by a greatest common divisor of the cycles of the first and second control tasks and then multiplying a result of division by a natural number n, and that stores the calculated current slot number in a memory; and a determination unit that reads the current slot number stored in the memory when each of the execution results of the first and second control tasks is output, and that determines whether a time constraint is violated based on the read slot number and an output constraint condition in which a permissible slot number for the output of execution result of the control task is set in advance. - View Dependent Claims (6)
-
-
7. A non-transitory recording medium on which a program is recorded, the program causing a computer, in which a first control task and a second control task having different cycles are periodically executed based on input data in a multitasking manner, execution results of the first and second control tasks are respectively output, and the first control task is executed using the execution result of the second control task as the input data, to operate to:
-
calculate a current slot number based on the number of slots which are obtained by dividing a time axis at predetermined time intervals, the number of the slots being set to a value obtained by dividing a least common multiple of the cycles of the first and second control tasks by a greatest common divisor of the cycles of the first and second control tasks and then multiplying a result of division by a natural number n, and store the calculated current slot number in a first memory; read the current slot number stored in the first memory when each of the execution results of the first and second control tasks is output, and store the read slot number in a second memory as a slot number at time of output of the execution result; and obtain, when the first control task that requires the execution result of the second control task as the input data is activated, the slot number at time of output of the execution result of the second control task from the second memory, and determine whether a time constraint is violated based on the obtained slot number and an input constraint condition in which a permissible slot number for the input data for the first control task is set in advance.
-
-
8. A non-transitory recording medium on which a program is recorded, the program causing a computer, in which a first control task and a second control task having different cycles are periodically executed based on input data in a multitasking manner, execution results of the first and second control tasks are respectively output, and the first control task is executed using the execution result of the second control task as the input data, to operate to:
-
calculate a current slot number based on the number of slots which are obtained by dividing a time axis at predetermined time intervals, the number of the slots being set to a value obtained by dividing a least common multiple of the cycles of the first and second control tasks by a greatest common divisor of the cycles of the first and second control tasks and then multiplying a result of division by a natural number n, and store the calculated current slot number in a memory; and read the current slot number stored in the memory when each of the execution results of the first and second control tasks is output, and determine whether a time constraint is violated based on the read slot number and an output constraint condition in which a permissible slot number for the output of execution result of the control task is set in advance.
-
Specification