|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Visual Studio
Our team wants to switch to c++ and program in Visual Studio we where wondering if it is possible to program and deploy code to the robo-rio from Visual Studio. We have found c sharp templates to deploy from Visual Studio but not a c++ one.
|
|
#2
|
||||
|
||||
|
Re: Visual Studio
Quote:
|
|
#3
|
|||
|
|||
|
Re: Visual Studio
I assume because of how nice it is to code in Visual Studio
|
|
#4
|
||||
|
||||
|
Re: Visual Studio
The Visual Studio compiler is much more powerful and easier to use... well easier for someone who uses it professionally on a daily basis.
![]() Maybe I'm bias, but it has been so much preferred that we went through the trouble of writing all the code simulated in visual studio environment, and then porting it over later. As debugging remotely is a real nightmare and 10x more time consuming (that 10x is a conservative estimate, probably more time considering all the times we had to redeploy code). Last I checked, visual studio 2013 and above can have an Arduino IDE environment, but I've never tested that yet. It could work, but then the trick would be to get WPI libraries built as well... or link to them from VS. I think it can be done, but I haven't really had a chance to pursue this. |
|
#5
|
||||
|
||||
|
Re: Visual Studio
If you want to get the code to work nicely with Visual Studio, you're going to have to do a bit of manual work.
Step 1: Get the WPILib and NT-Core header files. These will usually be under ~/wpilib You can add these to your project's header files include directory. This should fix up any false-alarm syntax errors you might be getting. Step 2: Configure your build system. This is a bit difficult. First, you need the FRC C++ toolchain installed and added to your PATH. Next, you have to use some form of build system to send over and compile your code. You can use the one provided by WPILib for this. WPILib uses ANT to build and deploy code. Visual Studio supports ANT builds and you can find instructions here. Reconfigure your build targets to use this build system, and you should be set to go. If you're stuck looking for what tasks to run, run a simple build in eclipse and take note of what tasks are executed, that should help you. Keep in mind this is only to build and deploy code. The code you build will not run on your system, as it's built for an ARM target (the roborio) |
|
#6
|
|||
|
|||
|
Re: Visual Studio
Quote:
). I'll work with Joeojazz and try to get Visual Studio working properly. You may hear from Team 5712 in the next few days if we hit any bumps in the road, but we'll give it a shot!Alex Team 5712 Mentor Last edited by ahaltom : 03-08-2016 at 13:11. Reason: typo |
|
#7
|
||||
|
||||
|
Re: Visual Studio
If you are interested in using C#, RobotDotNet seems to be a pretty solid solution: https://www.chiefdelphi.com/forums/s...d.php?t=140972
|
|
#8
|
||||
|
||||
|
Re: Visual Studio
Quote:
![]() That's sarcasm folks, calm down. For the record, I work in a plethora of development environments as well as compilers as a professional on a daily basis. They are all equally crap, except for VIM, which isn't technically an IDE but there are enough enhancements to it these days that I count it as one. ![]() Last edited by marshall : 03-08-2016 at 07:28. |
|
#9
|
||||
|
||||
|
Re: Visual Studio
Quote:
Visual Studio isn't a compiler, but MSVC is ![]() I think the main attraction to Visual Studio is just how $@#$@#$@#$@# good IntelliSense is. The only system I've seen come close is JetBrains' code completion, but IntelliSense still tops it IMHO. |
|
#10
|
||||
|
||||
|
Re: Visual Studio
It does have some perks. If I were writing in a consistent language then I could see where that would be very useful. I've been using VS lately with some work in Unity and on the CTRE HERO board.
|
|
#11
|
||||
|
||||
|
Re: Visual Studio
+1 this.
|
|
#12
|
||||
|
||||
|
Re: Visual Studio
Yes, Visual Studio Compiler...
That's my wording and I'm sticking with it! ![]() Also... in your critique of Visual Studio... did you try it with the Visual Assist plugin? This really makes a difference. |
|
#13
|
||||
|
||||
|
Re: Visual Studio
I am by no means a critic, just a cynic. I'll check out the plugin though. Always open to new stuff.
|
|
#14
|
||||
|
||||
|
Re: Visual Studio
For reference:
http://www.wholetomato.com/ I've been using this since around 2002... (It works on all versions of visual studio) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|