|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Interactive DashBoard
Hi everyone, it has been over a year and I am finally ready to release a beta version. I hope you guys like it.
I knew that no matter how much I begged and screamed, the robot would never be completed with enough time for any decent programming time left. I knew many were on the same boat. Thus, I embarked on developing a program that would allow for more to be accomplished in less time. You never have enough time for programming! Debugging was the most time consuming part of the software development. Since the IFI hardware restrictions don’t allow for the use of In-circuit debuggers, I realized that viewing variables values as they progressed through a function was the best way to debug. This application is intended to improve debugging efficiency by reducing the number of code downloads, allowing to view 10 different variables simultaneously and graph 5 of them, view tons of camera data, and directly control PWMs for hardware diagnostics, all at the same time and in real time. No re-flashing is required to change which variable is being viewed in each column! This program has been in development for over a year. The DataView has been field tested during the 2007 season and proven to be very effective. It has been the most complex project I have ever worked on with a combination of RC hardware and software along with Visual C++ application development. I have tried to maintain efficiency and reliability in the RC code. But on the Visual C++ application side I only worried about reliability since the PC processor is far more capable and thus, easily able to process application code. CAUTION: I have tried my best to put the highest priority on safety. The PWM control has not been field tested, thus I cannot guarantee %100 safety while using the PWM. Yet the system has many fail-safes. If the program cord is disconnected, serial port turned off, or the RESET/STOP is clicked, the pwms, relays, and joysticks controls will all reset to default (127 or 0). NOTE: The reason for its current release is to see if people are interested, and for me to understand problems other might have with their RC or PC while implementing this setup. Right now only the DataView (without data logging), Camera, and PWM work. If people are interested and not too many serious problems are experienced, then a more complete package will be released. If you want to test it out first, I have included a compiled hex file for the 06-7 RC with the source code. Download this to the RC using the IFI loader and fire up DashBoard for testing. You still need to follow instructions 1 and 2 from “How to get started” in the DashBoard_readme.doc Requirements: PC: .NET Framework 2 or above MPLAB RC: Kevin Watson’s Serial Port Kevin Watson’s Camera Code (if using the camera feature) Up the RX1 buffer to 64 in serial_ports.h If you guys have critiques on anything, please let me know. This is my first release ever so I really don't know what I am doing. I need to give a special thanks to Kevin Watson for all his marvelous code. |
|
#2
|
||||
|
||||
|
Re: Interactive DashBoard
I can only upload 5 files at a time so here is the last picture. What do you guys think?
|
|
#3
|
||||
|
||||
|
Re: Interactive DashBoard
the program is absolutely fantastic, you did an amazing job
|
|
#4
|
||||
|
||||
|
Re: Interactive DashBoard
Thanks, did you have any problems with the instructions or getting it running?
EVERYONE: I might not have made this clear because it got buried in the instructions, but you need to DISABLE ANY DIAL-UP/FAX modems on your computer(use the device manager). I don't know if this affects USB to Serial converters. For some reason it screws with the serial port and outputs garbage data. Last edited by 6600gt : 31-07-2007 at 17:40. |
|
#5
|
||||
|
||||
|
Re: Interactive DashBoard
Looks great! I haven't had a chance to test it on a robot, but it looks like it could be a lot of help debugging.
|
|
#6
|
||||
|
||||
|
Re: Interactive DashBoard
This looks awsome i'll definitely be trying it out next time i get a chance
|
|
#7
|
||||
|
||||
|
Re: Interactive DashBoard
How many are interested?
Has any one gotten a chance to test it? I would like some feedback on how it's working for others so I can make the required modifications. |
|
#8
|
||||
|
||||
|
Re: Interactive DashBoard
It would be nice if this code could be modified to also work with the vex system. That will give a wider user base to develop the features of an interactive dashboard. Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language. Overall, great potential !
|
|
#9
|
||||
|
||||
|
Re: Interactive DashBoard
That really wouldnt be that hard to do, we just need to make a standard protocal. Then you can control it through a program running on your computer or you could add a seperate board running, say java that would communicate with the RC over the serial port
|
|
#10
|
|||||
|
|||||
|
Re: Interactive DashBoard
zor!
This looks rockin'!! I can't wait to try it out. This sounds like a 74-hour-marathon-programmer's dream app! Keep up the good work! Jacob |
|
#11
|
||||
|
||||
|
Re: Interactive DashBoard
Quote:
|
|
#12
|
||||
|
||||
|
Re: Interactive DashBoard
I've successfully used Kevin's Serial, Camera, and ADC code on the Vex platform.
Since the processors used in the pre-2006 FRC RC is the same as the Vex controller, following Kevin's instructions to run his code on the old or EDU controllers will work for Vex. The only difference is that you need to use the Vex library, which is in the vex "starter code" available here. EDIT: The instructions I refer to are in the readmes for each of Kevin's projects. |
|
#13
|
||||
|
||||
|
Re: Interactive DashBoard
Quote:
If you have gotten the serial port code to work, then all you have to do is include the DashBoard.c/h and setup the user_routines.c similar to the sample code(or follow the DashBoard_readme.doc instructions)...maybe get rid of the camera stuff...Does anyone use the camera with the VEX? |
|
#14
|
|||||
|
|||||
|
Re: Interactive DashBoard
OK, so i let my guy run it, and he has a problem.
[quote: programmer] I downlaoded the binnary version, an every time i run it, it gets stuck. What's the problem/soluion? [quote] |
|
#15
|
||||
|
||||
|
Re: Interactive DashBoard
Quote:
I would love to help you but I need some more explanation as to how or when it occurs. Does it run fine without the RC connected? Does it freeze when the data starts to pour into the DataView? Does the whole program freeze or just the data flow? If it runs with the RC NOT connected to the computer then PC has everything needed to run the program. If it freezes when the RC is connected then... Does the RC crash? Last edited by 6600gt : 16-08-2007 at 02:55. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interactive Debugger/Monitor | duane | Programming | 10 | 11-10-2006 23:26 |
| Labview Dashboard and updated IFI dashboard spec | Joe Ross | LabView and Data Acquisition | 1 | 04-04-2006 02:04 |
| FIRST Interactive Rural SupporT | coreyk | FIRST Interactive Rural SupporT | 1 | 12-11-2003 10:31 |
| Interactive Map - Out of Date | Don Knight | General Forum | 0 | 19-09-2002 17:54 |
| interactive strategy | piconysm | Rules/Strategy | 5 | 11-01-2002 08:47 |