bhunt2 / QC1.0

Design, documentation, and code for our first quadcopter
1 stars 0 forks source link

C++ Code Upload #16

Closed sabmah closed 8 years ago

sabmah commented 8 years ago

@bhunt2 @spesialstyrker @Kekahuna @hautruong36

We have our image processing code and camera calibration code in C++.

VisualMicro for visual studio only supports Arudino IDE w/o C++ support from my knowledge.

We found VisualGDB for Visual Studio, but it is only 30 day trial.

Our only option now is Eclipse.

Are there any other options that we missed out?

bhunt2 commented 8 years ago

@sabmah @hautruong36 @Kekahuna @spesialstyrker How about just coding directly on the Edison using nano, vim, or something like that? I recommended in the beginning that you do all your work, or at least do your final testing on the Edison so that you are gradually integrating and seeing how things go together along the way. You can use GNU Make for your code building management. I did not force it on you because it seemed that you guys really wanted to work with an IDE. I feel that just using a text editor with Make would be a good way to move forward though. It might take a bit to get used to, but I know it will get rid of your issues. I have used Linux quite a bit, but Michael is the Linux guru. If you need help getting things going, I am sure he would be happy to work with you guys.

Also, I don't believe any of you are using Linux based systems, so just getting familiar with that is going to be a chore. There is no requirement to have a Linux install package, you just need a program or a set of programs that can run on the Edison. For example, I should be able to clone the repository and build the program(s) and run it(them).

Note: If you guys have been using Visual Studio for your image processing code and have been mostly using what came off the web, you may have a tough time integrating into a non-VS system. The code snippets that are often written and used by users of VS include VS specific code libraries that cannot be used outside of that IDE. Please let us know if you need any assistance with this as well.

sabmah commented 8 years ago

How difficult is the debugging? I have little experience with gdb on linux and debugging was a huge "turn off" for me.

ghost commented 8 years ago

Since you will be running with in an OS on the Edison and not running a bare metal project it is a matter of building your executable with debug symbols (-g for gcc/g++), calling 'gdb program_name', and setting breakpoints for your code before running. The commands for setting a breakpoint can be 'b 3' for break on line three; there are much better ways for setting breakpoints but that's the basics, and there is lots of information available. If you do get stuck with the GDB commands though i would be happy to help!

sabmah commented 8 years ago

Also, I (may be others in the team) is not well versed on the make and CMake. If problems arise from uploading code from eclipse, then we might switch to make and gcc or gdb.

bhunt2 commented 8 years ago

You can ask either Michael or me about debugging in that environment. Just make sure right away that your Eclipse setup is going to work with what you are trying to do. Don't let any more time pass without testing your work on the Edison itself.

@sabmah If you are satisfied with the current solution, please close this issue.