Skip to content

LV Box Fan PWM Message #146

@bjackson312006

Description

@bjackson312006

Description

VCU needs to send Compute a CAN message to set the LV box fan's PWM. So, Cerberus-2.0 needs to periodically read the LV box temperature from the SHT30, calculate a PWM percentage value (from 0 to 100) from this temperature, and send this value to Compute via a CAN message.

Proposed Solution

Go into the peripherals thread, where the temperature from the STH30 is already being read. Then, use this temperature to calculate a PWM percentage value (from 0 to 100). A temperature reading of 20C should correspond to 0, while a reading of 40C should correspond to 100. Create a new CAN message containing this value, and queue it.

Note: You will also have to go into Odyssey-Definitions and add the new CAN message to vcu.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions