|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: C++ - No Code?
Quote:
The main issue was that the parsing of the team number into an ip address in ucpp-init. Since the method used in ucpp-setup worked, I changed ucpp-init to parse its arguments in the same manner. I also cleaned up the detect python function, as in my case it was outputting the found python twice. Also there was no need to use the output of that function to set ucpp_python_bin, as the variable is globally scoped. Last I included the found python in the settings file so it could be used from other scripts. |
|
#17
|
|||
|
|||
|
Re: C++ - No Code?
Hey: this may seem a bit off topic, but is there somewhere I could get information on compiling code targeting VxWorks on a ppc 603 cpu like you did without windriver? I'm running unix and I'm trying to figure out how to download code to out cRIO without a license for windriver.
I've started working on compiling my own cross tools to target the different CPU architecture, but I really don't know where to start. Any help appreciated! |
|
#18
|
|||
|
|||
|
Re: C++ - No Code?
Quote:
Quote:
|
|
#19
|
|||
|
|||
|
Re: C++ - No Code?
Quote:
http://hg.zombiezen.com/vxworks-gcc-patches/overview |
|
#20
|
|||
|
|||
|
Re: C++ - No Code?
Hi rbmj. Thanks for the changes to ucpp - I've pulled them in.
Right now I'm in college, away from my team, so unfortunately that means I'm somewhat out of the loop on FRC and don't have a real robot to test code on. I'm probably not the best person to be maintaining ucpp at the moment. That said, I'm still around online, and I'm still very much interested in seeing ucpp remain usable throughout the next competition. It's really a shame for teams not to be able to program on Linux when the tools are there, and have been there for quite a while. byteit101 - do you plan to continue working on ucpp throughout the next year? It will need some updates after kick-off for everything to work with the new versions of WPILib, etc. |
|
#21
|
||||
|
||||
|
Re: C++ - No Code?
I do. I've been busy recently, but will probably work on it some more after kickoff.
|
|
#22
|
|||
|
|||
|
Re: C++ - No Code?
Quote:
Primarily, I know that in order to pass inspection your robot must be running a certain version of the firmware. Now, I know that you could image the cRIO and then overwrite all of the libraries, but could you be disqualified for doing this? Anyone happen to know what the rules say on this? GCC 3 is so old... it seems like FIRST *should* encourage teams to innovate. Also, at some point maybe I could modify ucpp to allow users to optionally install ucpp for their whole system. We could also look at integrating build scripts - if nothing else we could find the source for the same version of GCC that gccdist uses - this _in_theory_ should not have any issues and be fully compatible with the stock image. |
|
#23
|
|||
|
|||
|
Re: C++ - No Code?
It is fully legal. You are not replacing any librarys. You are only generating a binary that has a second version of the library symbols that have been re-named to avoid a namespace collision. There is no need to modify the firmware to get this to work. This is similar to writing your own printf and friends and using those.
If you want, it is also possible to use the old version of the standard libraries that comes with the cRIO and use the newer compiler with them. This will produce a number of warnings in the header files, but it will still work. This is the route that 971 went last year, since I hadn't gotten the symbol renaming worked out. |
|
#24
|
|||
|
|||
|
Re: C++ - No Code?
I've updated ucpp-setup so that it pulls in 2012 WPILib. The default robot seems to compile fine. I have no idea what the Kinect libraries are all about though.
|
|
#25
|
|||
|
|||
|
Re: C++ - No Code?
Hey there, I was wondering if your team was able to get the FIRST menu option in the 2012 WindRiver Installation. Are there any WPILib updates online that I need to install? I also don't have any examples or templates like "SimpleRobot" etc.
Thanks for your help. |
|
#26
|
|||
|
|||
|
Re: C++ - No Code?
|
|
#27
|
|||
|
|||
|
Re: C++ - No Code?
Quote:
Brad |
|
#28
|
|||
|
|||
|
Re: C++ - No Code?
The kinect stuff should be to get kinect data from the driver station.
As far as I know, it's impossible (well not impossible, but impractical) to get the kinect to work ON robot in it's original capacity. That would require implementing a full USB Host driver on two DIO ports AFAIK, which is theoretically possible but would be extremely hard (it'd probably leave you little time to code up the actual robot drive code). If anyone has information/knows more, please say so. But it seems like the kinect isn't all too useful, and is more of a marketing gimmick (not that I'm complaining, it's a cool sensor to play with) on Microsoft's part, as most of the autonomous code can be done via vision onboard the robot without the need for much human intervention. I'm sure someone will do something completely novel with it though, so I'll have to wait and see. |
|
#29
|
|||
|
|||
|
Re: C++ - No Code?
I don't know if this is necromancy or not - still kind of new to CD.
I wanted to ask Austin Schuh how he got libstdc++ to build. I've successfully build gcc & friends using a combination of the patches and a little messing with compile flags. However, I get an error on the libstdc++-v3 configure script: checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. And when I try and build the configured portions, I get butloads of errors, some of which appear to be related to pthreads. I also incorporated jmesmon's patches, but am still getting errors. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|