Getting Robot Outputs

YEA FIRST POST (and hopefully in the right area)

My team likes outputs, lots and lots of outputs from the robot.
They want to see everything from the motor values to custom switches and additional windows for messages. The ifi loader’s window that displays the printfs just wont do! So i set out to make a VB application to split the outputs from the robot and things like that. Unfortunitly when i try and read the comport all i get is two numbers repeating themselves like…
i added separators so it looked like this…
How do i get the printf data out of this?!

well, i’ll show you ours, maybe you’ll get an idea from that:

	printf("\r------------------------- USER INPUTS -------------------------------\r");
	printf("Joystick 1 Y-axis: %d	 Joystick 1 Trigger: %d\r", left_joy, p1_sw_trig);
	printf("Joystick 2 Y-axis: %d	 Joystick 2 Trigger: %d\r", right_joy, p2_sw_trig);
	printf("\r------------------------- PWM OUTPUTS -------------------------------\r");
 	printf("Left Motor: %d	 Right Motor: %d\r",  (int)left_motor, (int)right_motor);
 	printf("Relay 1 Forward: %d	 Relay 1 Reverse: %d\r", relay1_fwd, relay1_rev);
 	printf("Relay 2 Forward: %d	 Relay 2 Reverse: %d\r", relay2_fwd, relay2_rev);

/*	printf("\r------------------------- SENSORS -------------------------------\r");
	printf("\r------------------------- VARIABLES -------------------------------\r");
	printf("Alt Left Encoder: %dl	 Alt Right Encoder: %dl\r", Encoder_1_Counter, Encoder_2_Counter);

that prints all of our stuff in nice orderly rows. You can use that code if you want. We have it print every few seconds

If I were you, I would investigate the Dashboard Viewer.

Besides the “official” link given, you will find numerous independent viewers available by searching these forums and the white papers section. Many have source code attached which allows you to modify as you see fit.

One of my favorites was this one by Sean Witte.

Good luck,