|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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... 8376837683768376 i added separators so it looked like this.... 83|76|83|76|83|76|83|76 How do i get the printf data out of this?! |
|
#2
|
||||
|
||||
|
Re: Getting Robot Outputs
well, i'll show you ours, maybe you'll get an idea from that:
Code:
PrintData(){
printf("\r------------------------- USER INPUTS -------------------------------\r");
printf("Joystick 1 Y-axis: %d\t Joystick 1 Trigger: %d\r", left_joy, p1_sw_trig);
printf("Joystick 2 Y-axis: %d\t Joystick 2 Trigger: %d\r", right_joy, p2_sw_trig);
printf("\r------------------------- PWM OUTPUTS -------------------------------\r");
printf("Left Motor: %d\t Right Motor: %d\r", (int)left_motor, (int)right_motor);
printf("Relay 1 Forward: %d\t Relay 1 Reverse: %d\r", relay1_fwd, relay1_rev);
printf("Relay 2 Forward: %d\t Relay 2 Reverse: %d\r", relay2_fwd, relay2_rev);
/* printf("\r------------------------- SENSORS -------------------------------\r");
*/
printf("\r------------------------- VARIABLES -------------------------------\r");
printf("Alt Left Encoder: %dl\t Alt Right Encoder: %dl\r", Encoder_1_Counter, Encoder_2_Counter);
}
|
|
#3
|
||||
|
||||
|
Re: Getting Robot Outputs
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, Mike |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting attached to your robot | Jherbie53 | General Forum | 13 | 02-03-2008 14:42 |
| Getting data from the robot | mfwit | LabView and Data Acquisition | 1 | 19-02-2006 20:07 |
| Relay outputs on rc | jdawson | Electrical | 4 | 26-01-2003 12:51 |
| Getting a grip on robot technology | archiver | 2001 | 2 | 24-06-2002 01:20 |
| Relay Outputs | OddOne | Technical Discussion | 3 | 01-02-2002 19:52 |