|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||
|
|||
|
Re: RobotPy 2010.beta2
It's UDP broadcasted by the robot to 10.255.255.255, port 6666. There's no data format, the UDP payload is simply the console output.
|
|
#17
|
||||
|
||||
|
Re: RobotPy 2010.beta2
so i listen for a broadcast on port 6666?
how would i do this with netcat? |
|
#18
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
Remember that to get anything you need to have the NetConsole server running on the cRIO (by editing ni-rt.ini per the instructions in the above link). Also I've only seen this work over wired connections (on the PC side); wireless to the robot works fine, but the PC has to be hardwired to the router (I think this has to do with it being broadcast instead of unicast). |
|
#19
|
|||
|
|||
|
Re: RobotPy 2010.beta2
UDP 6666 for packets to the client.
UDP 6668 for packets to the cRIO. |
|
#20
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
You can then use the script here.... or just run (after compiling ncb.c): Code:
./ncb 6666 & nc -u 10.xx.yy.2 6668 -Joe |
|
#21
|
||||
|
||||
|
Re: RobotPy 2010.beta2
thanks
![]() so i add netconsole.out to the startupdll's? |
|
#22
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Add it to the beginning of EarlyStartupLibraries. Guess you didn't find the instructions.
|
|
#23
|
||||
|
||||
|
Re: RobotPy 2010.beta2
just confirming
|
|
#24
|
||||
|
||||
|
Re: RobotPy 2010.beta2
This is great!
I played with RobotPy a little, and here's a problem I encountered. When our code exits due to some error, it waits 5 seconds and then starts our script again, which is how we load new code. However, when it's an actual error, not an intentional interrupt for new code, while we look at the source and fix the problem it keeps on restarting every 5 seconds. Eventually it crashes with some memory error and we have to restart the robot. (I don't have the output in front of me; I'll try and reproduce it so I can post the exact error.) Has anyone else had this issue? How can I prevent it from doing this? |
|
#25
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
|
|
#26
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
How long does a power cycle take for most people? With our LabView code (I don't know if your language makes a difference), it took a minute or two before we got communications after turning the robot on. If the error is happening because the user code is being loaded/unloaded so often, then I can't think of any good fix that doesn't involve fixing the memory error/bug. |
|
#27
|
||||
|
||||
|
Re: RobotPy 2010.beta2
When there's an error can't it just sit there and wait for you to load new code? Maybe that's something that could be done in robot.py inside of run(), if it catches an exception then checkRestart() continuously.
|
|
#28
|
|||
|
|||
|
Re: RobotPy 2010.beta2
By scanning the /py/ directory for updated date/time/size files (maybe non-ideal because of multiple files...)? Or wait for a joystick button press?
|
|
#29
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
With regards to reboot time, you don't need to power cycle the whole robot. Clicking the "Reboot Robot..." button on the Driver Station Diagnostics tab only takes 20-30 seconds. Still non-ideal, of course, but much faster than a power cycle (the additional delay is due to the wireless network startup time). Last edited by Peter Johnson : 01-10-2011 at 02:25 AM. |
|
#30
|
||||
|
||||
|
Re: RobotPy 2010.beta2
Quote:
http://pastebin.com/9bcUEy96 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RobotPy: Python for FRC | Peter Johnson | Python | 28 | 10-17-2012 11:46 AM |
| [FTC]: FTC 2010-2010 "A New Game" | JohnFogarty | FIRST Tech Challenge | 2 | 08-21-2010 10:34 PM |
| Connect a Million Minds 2010 Robotics Invitational, June 26, 2010 Columbus, Ohio | Dr. Osemwengie | Off-Season Events | 29 | 07-03-2010 12:33 AM |
| 2010 accelerometer | chsr | C/C++ | 1 | 01-22-2010 02:28 AM |