A motor controller, comprising a motor control housing having an air inlet at a first end and an air outlet at a second end; a plurality of heat generating elements disposed within the motor control housing; and a cooling system including a cooling device arranged within the motor control housing, wherein the cooling device is a cold plate comprising a first planar plate and a second planar plate separated by a gap having a fluid sealed therein and including: an evaporator region wherein the fluid absorbs heat via vaporization; and a condenser region wherein the vaporized fluid releases heat via condensation; wherein the plurality of heat generating elements is cooled by conduction to the cooling device and by convection from an airflow between the air inlet and the air outlet; and wherein the airflow cools the vaporized fluid at the condenser region; and characterized by the cooling device extending from the first housing end of the motor control housing to the second housing end of the motor control housing opposite the first housing end, the cooling device and the motor control housing thus defining two airflow channels therebetween; and wherein at least one heat generating element of the plurality of heat generating elements is mounted at each of the first planar plate and the second planar plate; and at least one heat generating element of the plurality of heat generating elements is disposed in each of the evaporator region and the condenser region, wherein the heat generating elements that produce that produce the greatest amounts of heat are arranged in the evaporator region of the cold plate. a motor control housing having an air inlet at a first end and an air outlet at a second end; a plurality of heat generating elements disposed within the motor control housing; and a cooling system including a cooling device arranged within the motor control housing, wherein the cooling device is a cold plate comprising a first planar plate and a second planar plate separated by a gap having a fluid sealed therein and including: an evaporator region wherein the fluid absorbs heat via vaporization; and a condenser region wherein the vaporized fluid releases heat via condensation; wherein the plurality of heat generating elements is cooled by conduction to the cooling device and by convection from an airflow between the air inlet and the air outlet; and an evaporator region wherein the fluid absorbs heat via vaporization; and a condenser region wherein the vaporized fluid releases heat via condensation; wherein the plurality of heat generating elements is cooled by conduction to the cooling device and by convection from an airflow between the air inlet and the air outlet; and wherein the plurality of heat generating elements is cooled by conduction to the cooling device and by convection from an airflow between the air inlet and the air outlet; and wherein the airflow cools the vaporized fluid at the condenser region; and characterized by the cooling device extending from the first housing end of the motor control housing to the second housing end of the motor control housing opposite the first housing end, the cooling device and the motor control housing thus defining two airflow channels therebetween; and wherein at least one heat generating element of the plurality of heat generating elements is mounted at each of the first planar plate and the second planar plate; and at least one heat generating element of the plurality of heat generating elements is disposed in each of the evaporator region and the condenser region, wherein the heat generating elements that produce that produce the greatest amounts of heat are arranged in the evaporator region of the cold plate.