Clearing the terminal screen?

后端 未结 14 2503
隐瞒了意图╮
隐瞒了意图╮ 2020-12-29 07:03

I\'m reading data from 9 different sensors for my robot and I need to display them all steadily, in the same window so I can compare the values and see if any of the reading

14条回答
  •  萌比男神i
    2020-12-29 07:54

    imprime en linea los datos con un espaciado determinado, así tendrás columnas de datos de la misma variable y será más claro

    Print all data in line, so you have rows with the data you need, i just solve the same problem like this, just make sur you had asignad a constant data size and spacement between, I made this

    Serial.print("cuenta q2: ");
    Serial.print( cuenta_pulsos_encoder_1,3);
    Serial.print("\t");
    Serial.print(q2_real,4);
    Serial.print("\t");
    Serial.print("cuenta q3: ");
    Serial.print( cuenta_pulsos_encoder_2,3);
    Serial.print("\t");
    Serial.print(q3_real,4);
    Serial.print("\t");
    Serial.print("cuenta q4: ");
    Serial.print( cuenta_pulsos_encoder_3,3);
    Serial.print("\t");
    Serial.println(q4_real,4);
    

提交回复
热议问题