Si hombre, eso si lo se hacerlo, donde tengo mis dudas es en esta parte
Yo solo quiero que por el puerto serie me salga los datos de Pitch y roll
if(lcd_loop_counter == 3)lcd.print(abs(angle_pitch_buffer)/1000); //Print first number
if(lcd_loop_counter == 4)lcd.print((abs(angle_pitch_buffer)/100)%10);//Print second number
if(lcd_loop_counter == 5)lcd.print((abs(angle_pitch_buffer)/10)%10); //Print third number
if(lcd_loop_counter == 6)lcd.print("."); //Print decimal point
if(lcd_loop_counter == 7)lcd.print(abs(angle_pitch_buffer)%10); //Print decimal number
if(lcd_loop_counter == 8){
angle_roll_buffer = angle_roll_output * 10;
lcd.setCursor(6,1);
}
if(lcd_loop_counter == 9){
if(angle_roll_buffer < 0)lcd.print("-"); //Print - if value is negative
else lcd.print("+"); //Print + if value is negative
}
if(lcd_loop_counter == 10)lcd.print(abs(angle_roll_buffer)/1000); //Print first number
if(lcd_loop_counter == 11)lcd.print((abs(angle_roll_buffer)/100)%10);//Print second number
if(lcd_loop_counter == 12)lcd.print((abs(angle_roll_buffer)/10)%10); //Print third number
if(lcd_loop_counter == 13)lcd.print("."); //Print decimal point
if(lcd_loop_counter == 14)lcd.print(abs(angle_roll_buffer)%10); //Print decimal number
Esto es lo que haría yo pero... te aclaro que Serial no es lo mismo que lcd y chocolate por la noticia dirás.
El tema es que ahora no tienes dos lineas, sino que esto irá presentandose y visualizándose en cada linea del monitor serie.
Prueba a ver como se comporta.
Quita toda referencia a lcd.
lcd_loop_counter++;
if (lcd_loop_counter == 3)
Serial.println(abs(angle_pitch_buffer)/1000); //Print first number
if (lcd_loop_counter == 4)
Serial.println((abs(angle_pitch_buffer)/100)%10);//Print second number
if (lcd_loop_counter == 5)
Serial.println((abs(angle_pitch_buffer)/10)%10); //Print third number
if (lcd_loop_counter == 6)
Serial.println("."); //Print decimal point
if (lcd_loop_counter == 7)
Serial.println(abs(angle_pitch_buffer)%10); //Print decimal number
if (lcd_loop_counter == 8){
angle_roll_buffer = angle_roll_output * 10;
}
if (lcd_loop_counter == 9){
if (angle_roll_buffer < 0)
Serial.println("-"); //Print - if value is negative
else
Serial.println("+"); //Print + if value is negative
}
if (lcd_loop_counter == 10)
Serial.println(abs(angle_roll_buffer)/1000); //Print first number
if (lcd_loop_counter == 11)
Serial.println((abs(angle_roll_buffer)/100)%10);//Print second number
if (lcd_loop_counter == 12)
Serial.println((abs(angle_roll_buffer)/10)%10); //Print third number
if (lcd_loop_counter == 13)
Serial.println("."); //Print decimal point
if (lcd_loop_counter == 14)
Serial.println(abs(angle_roll_buffer)%10); //Print decimal number