style: small renaming
This commit is contained in:
1 parent
5f32f01c26
commit
ffbda6d8e1
4 files changed
+7
-8
No files matched your search
+2
-3
@@ -189,7 +189,7 @@ void get_airflow_temperature(double *airflow_temperature, const air_passage_data
|
||||
{
|
||||
double min = data->min_airflow_temperature;
|
||||
double max = data->max_airflow_temperature;
|
||||
_get_double_in_range(airflow_temperature, min, max, "Enter air temperature in C", "Incorrect air temperature. Try again.");
|
||||
_get_double_in_range(airflow_temperature, min, max, "Enter airflow temperature in C", "Incorrect airflow temperature. Try again.");
|
||||
}
|
||||
|
||||
void get_pressure_drop(double *pressure_drop_limit, const double *airflow, const double *airflow_pressure, double *corrected_airflow_pressure, const double *barometric_pressure, const double *airflow_temperature, const air_passage_data_t *data)
|
||||
@@ -306,8 +306,7 @@ static void _get_log_interpolated_airflow_pressure_drop_limit(double *limit, con
|
||||
}
|
||||
for (uint8_t i = 0; i < data->anchors_data_size - 1; ++i)
|
||||
{
|
||||
if (*airflow >= data->air_passage_anchors[i].airflow &&
|
||||
*airflow <= data->air_passage_anchors[i + 1].airflow)
|
||||
if (*airflow >= data->air_passage_anchors[i].airflow && *airflow <= data->air_passage_anchors[i + 1].airflow)
|
||||
{
|
||||
double log_x = log(*airflow);
|
||||
double log_x1 = log(data->air_passage_anchors[i].airflow);
|
||||
|
||||
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
#include "ats0002/21_53_89.h"
|
||||
#include "ats0002/21_53_88.h"
|
||||
|
||||
static const heat_exchanger_data_t heat_exchanger_data[] = {
|
||||
static const heat_exchanger_data_t _heat_exchanger_data[] = {
|
||||
{"Honeywell Heat Exchanger CMM 21-50-14", heat_exchanger_21_50_14_data, ARRAY_SIZE(heat_exchanger_21_50_14_data)},
|
||||
{"Honeywell Ram Heat Exchanger CMM 21-52-80", heat_exchanger_21_52_80_data, ARRAY_SIZE(heat_exchanger_21_52_80_data)},
|
||||
{"Honeywell NGS Heat Exchanger CMM 47-32-06", heat_exchanger_47_32_06_data, ARRAY_SIZE(heat_exchanger_47_32_06_data)},
|
||||
@@ -34,15 +34,15 @@ int main(void)
|
||||
"* *\n"
|
||||
"************************************************************\n"
|
||||
"\n");
|
||||
for (uint8_t i = 0; i < ARRAY_SIZE(heat_exchanger_data); ++i)
|
||||
for (uint8_t i = 0; i < ARRAY_SIZE(_heat_exchanger_data); ++i)
|
||||
{
|
||||
printf("%d. %s\n", i + 1, heat_exchanger_data[i].heat_exchanger_description);
|
||||
printf("%d. %s\n", i + 1, _heat_exchanger_data[i].heat_exchanger_description);
|
||||
}
|
||||
printf("\n");
|
||||
uint16_t heat_exchanger_number = 0;
|
||||
ASK_CHOICE(heat_exchanger_number, get_heat_exchanger_number, ARRAY_SIZE(heat_exchanger_data));
|
||||
ASK_CHOICE(heat_exchanger_number, get_heat_exchanger_number, ARRAY_SIZE(_heat_exchanger_data));
|
||||
printf("\n");
|
||||
const heat_exchanger_data_t *he = &heat_exchanger_data[heat_exchanger_number];
|
||||
const heat_exchanger_data_t *he = &_heat_exchanger_data[heat_exchanger_number];
|
||||
for (uint8_t i = 0; i < he->heat_exchanger_type_data_size; ++i)
|
||||
{
|
||||
printf("%d. %s\n", i + 1, he->heat_exchanger_type_data[i].part_number_description);
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user