Index: firmware/App/Controllers/Fans.c =================================================================== diff -u -rf9b3862d01ce6c64bd05b8649e69b44fa155b8e0 -r1510aec1871295f04541f1b932211d4ac621cc48 --- firmware/App/Controllers/Fans.c (.../Fans.c) (revision f9b3862d01ce6c64bd05b8649e69b44fa155b8e0) +++ firmware/App/Controllers/Fans.c (.../Fans.c) (revision 1510aec1871295f04541f1b932211d4ac621cc48) @@ -20,9 +20,8 @@ #define FANS_MAX_ALLOWED_RAMP_UP_DELTA_DUTY_CYCLE 0.3 ///< Fans max allowed ramp up PWM change. #define FANS_MAX_ALLOWED_RAMP_DOWN_DELTA_DUTY_CYCLE 0.005 ///< Fans min allowed ramp down PWM change. -//#define ONE_MINUTE_TO_MICRO_SECONDS ( SEC_PER_MIN * US_PER_SECOND ) ///< One minute to micro seconds conversion. -#define TOGGLE_PERIOD_RESOLUTION_SECONDS 0.0000025 ///< FPGA fans toggle period resolution in micro seconds. -#define ROTATIONAL_TO_TOGGLE_PERIOD_CONVERSION 4 ///< FPGA rotational to toggle period conversion coefficient. +#define TOGGLE_PERIOD_RESOLUTION_SECONDS 0.0000025 ///< FPGA fans toggle period resolution in micro seconds. +#define ROTATIONAL_TO_TOGGLE_PERIOD_CONVERSION 4 ///< FPGA rotational to toggle period conversion coefficient. #define FANS_DATA_PUBLISH_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Fans publish data time interval in counts. #define FANS_CONTROL_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Fans control time interval in counts. @@ -303,7 +302,7 @@ // Check if it is time to check for the control if( ++fansControlCounter > FANS_CONTROL_INTERVAL ) { - // Get the maximum temperature among all the thermistors and sensors to run fan from the hottest + // Get the maximum temperature among all the thermistors and temperature sensors to run fan from the hottest temperature F32 temperature = getMaximumTemperature(); //TODO REMOVE FOR TESTING