Backward Serial Monitors?

Hi all,

I inputted the following code into my computer for predefined variables 'newroll', 'oldroll', 'newpitch', 'old pitch', and 'x.'

  Serial.print(F("newroll"));
  Serial.print(F(":"));   //Filtered angle
  Serial.print(newroll);
  Serial.print(F(","));
  Serial.print(F("oldroll"));
  Serial.print(F(":"));
  Serial.print(oldroll);
  Serial.print(F(","));
  Serial.print(F("newpitch"));
  Serial.print(F(":"));
  Serial.print(newpitch);
  Serial.print(F(","));
  Serial.println(F("oldpitch"));
  Serial.print(F(":"));
  Serial.print(oldpitch);
  Serial.print("x");
  Serial.print(angle_x);

However, the monitor displays

:13.82x-3.00newroll:-3.02,oldroll:-3.00,newpitch:13.84,oldpitch

Why?

I think the issue is that the monitor does not have enough horizontal space to display this really long line.

What's wrong with it?

Are you seeing the remnants of the printing before you reset your arduino?

Print a few blank lines in setup() so that any rubbish in the buffer is printed before your data.

Probably because you used println at the wrong place.

guix:
Probably because you used println at the wrong place.

Where?

BulldogLowell:
What's wrong with it?

Are you seeing the remnants of the printing before you reset your arduino?

Yes

UKHeliBob:
Print a few blank lines in setup() so that any rubbish in the buffer is printed before your data.

That's ( '10' ), right?

chessy:
Where?

In the few lines of code you posted.

Oh

The bit you provided should display:

newroll:-3.02,oldroll:-3.00,newpitch:13.84,oldpitch
:13.82x-3.00

If you display a few times you will get:

newroll:-3.02,oldroll:-3.00,newpitch:13.84,oldpitch
:13.82x-3.00newroll:-3.02,oldroll:-3.00,newpitch:13.84,oldpitch
:13.82x-3.00newroll:-3.02,oldroll:-3.00,newpitch:13.84,oldpitch
:13.82x-3.00newroll:-3.02,oldroll:-3.00,newpitch:13.84,oldpitch
:13.82x-3.00

It's doing exactly what you said to do.