This commit is contained in:
rusefi 2017-04-07 16:01:49 -04:00
parent 73b12b6858
commit 9221a08a90
4 changed files with 6 additions and 3 deletions

View File

@ -421,7 +421,7 @@ static void getFloat(int offset) {
/**
* this response is part of dev console API
*/
scheduleMsg(&logger, "float @%d is %..100000f", offset, value);
scheduleMsg(&logger, "float @%d is %..100000f", offset, value);// %.5f
}
static void setFloat(const char *offsetStr, const char *valueStr) {

View File

@ -135,6 +135,7 @@ void ThermistorMath::prepareThermistorCurve(thermistor_conf_s *tc) {
float T2 = tc->tempC_2 + KELV;
float T3 = tc->tempC_3 + KELV;
#if EXTREME_TERM_LOGGING || defined(__DOXYGEN__)
// %.5f
scheduleMsg(logger, "T1=%..100000f/T2=%..100000f/T3=%..100000f", T1, T2, T3);
#endif
@ -149,6 +150,7 @@ void ThermistorMath::prepareThermistorCurve(thermistor_conf_s *tc) {
float L2 = logf(tc->resistance_2);
float L3 = logf(tc->resistance_3);
#if EXTREME_TERM_LOGGING || defined(__DOXYGEN__)
// %.5f
scheduleMsg(logger, "R1=%..100000f/R2=%..100000f/R3=%..100000f", tc->resistance_1, tc->resistance_2,
tc->resistance_3);
scheduleMsg(logger, "L1=%..100000f/L2=%..100000f/L3=%..100000f", L1, L2, L3);

View File

@ -394,6 +394,7 @@ static void printThermistor(const char *msg, ThermistorConf *config, ThermistorM
tc->tempC_2, tc->resistance_2,
tc->tempC_3, tc->resistance_3);
// %.5f
scheduleMsg(&logger, "bias resistor=%fK A=%..100000f B=%..100000f C=%..100000f", tc->bias_resistor / 1000,
tm->s_h_a, tm->s_h_b, tm->s_h_c);
scheduleMsg(&logger, "==============================");

View File

@ -170,10 +170,10 @@ void appendFloat(Logging *logging, float value, int precision) {
appendPrintf(logging, "%..1000f", value);
break;
case 4:
appendPrintf(logging, "%..10000f", value);
appendPrintf(logging, "%..10000f", value); // %.4f
break;
case 5:
appendPrintf(logging, "%..100000f", value);
appendPrintf(logging, "%..100000f", value); // %.5f
break;
case 6:
appendPrintf(logging, "%..1000000f", value);