VEHICLE CONTROLLER
A vehicle control apparatus of the present invention includes a plurality of arithmetic devices and changes tasks to be allocated to each arithmetic device, while preventing an increase of an effective load. A vehicle control apparatus according to the present invention includes a task table that defines tasks to be executed by each arithmetic device, and updates the task table when the vehicle control apparatus is activated or terminated.
1 . A vehicle control apparatus that controls operation of a vehicle, comprising:
a storage unit that stores a task table defining an arithmetic device which is configured to execute a control task for controlling the operation of the vehicle;
first and second arithmetic devices that execute the control task according to the definition of the task table; and
an update unit that updates the task table when the vehicle control apparatus is activated or terminated.
2 . The vehicle control apparatus according to claim 1 , further comprising:
a processing load measurement unit that measures a worst processing load taken for the first and second arithmetic devices to execute the control task, wherein
the update unit updates the task table in a manner that a total processing load of the first and second arithmetic devices is leveled in accordance with the worst processing load measured by the processing load measurement unit.
3 . The vehicle control apparatus according to claim 1 , wherein
the task table defines which of the first and second arithmetic devices needs to execute the control task, and
the first and second arithmetic devices identify the control task to be executed by referring to the task table and execute the identified control task.
4 . The vehicle control apparatus according to claim 1 , wherein
the task table includes a first sub-table that defines the control task to be executed by the first arithmetic device and a second sub-table that defines the control task to be executed by the second arithmetic device,
the update unit records only the control task to be executed by the first arithmetic device in the first sub-table, and records only the control task to be executed by the second arithmetic device in the second sub-table,
the first arithmetic device executes the control task defined by the first sub-table, and
the second arithmetic device executes the control task defined by the second sub-table.
5 . The vehicle control apparatus according to claim 1 , wherein
the task table defines a fixed task for which one of the first and second arithmetic devices needs to execute the control task is fixed and a relocatable task for which one of the first and second arithmetic devices needs to execute the control task is not fixed, and
the update unit updates only a portion of the task table defining the relocatable task.
6 . The vehicle control apparatus according to claim 1 , wherein
the task table defines allowable execution time designating a range of time allowable as time taken for executing the control task, and
the update unit updates the task table in a manner that the first and second arithmetic devices satisfy the allowable execution time when the first and second arithmetic devices execute the control task according to the updated task table.
7 . The vehicle control apparatus according to claim 1 , wherein
the task table defines an execution order of the control tasks, and
the update unit updates the task table in a manner that the execution order is satisfied when the first and second arithmetic devices execute the control task according to the updated task table.
8 . The vehicle control apparatus according to claim 2 , wherein
the processing load measurement unit writes measured data describing a measurement result of the worst processing load in an external storage device disposed outside the vehicle control apparatus, and
the update unit acquires the measured data from the external storage device and updates the task table in accordance with the acquired measured data.
9 . The vehicle control apparatus according to claim 1 , further comprising:
a task table input unit that receives data designating the definition of the task table, wherein
the update unit updates the task table according to the data received by the task table input unit.
10 . The vehicle control apparatus according to claim 1 , wherein
the storage unit stores a plurality of the task tables,
the vehicle control apparatus further includes a task table designate unit that receives data designating which of the definitions of the task tables needs to be adopted, and
the first and second arithmetic devices execute the control task according to the definition of the task table designated by the data received by the task table designate unit.