Skip to content

Commit a1a1d1c

Browse files
committed
update guide
1 parent fa1101e commit a1a1d1c

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

_guides/12_RobotCode_Project_setup.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Then open project properties and change the following configurations:
4343
4. **Project -> Properties -> Configuration Properties -> Linker -> System -> SubSystem:**
4444
Change to “Windows(/SUBSYSTEM:WINDOWS)” (because this is a Windows application, not a console application).
4545

46-
<img src="./solution_platform_x86.png" alt="Visual Studio Toolbar: Change solution platform from x64 to x86" width="400"/>
46+
<img src="./robotcode_solution_platform_x86.png" alt="Visual Studio Toolbar: Change solution platform from x64 to x86" width="400"/>
4747

4848
---
4949

@@ -68,7 +68,7 @@ By right-clicking on your project name in the “solution explorer” and select
6868

6969
**Note:** If you don’t add any of the project dependencies, you will face errors saying “unresolved external symbol”. Here is an example of how the errors might look like:
7070

71-
<img src="./unresolved_external_symbol_error.png" alt="Error List: Unresolved external symbol example" width="400"/>
71+
<img src="./robotcode_unresolved_external_symbol_error.png" alt="Error List: Unresolved external symbol example" width="400"/>
7272

7373
---
7474

@@ -101,3 +101,36 @@ string TASKSOUNDS = {
101101

102102
**In the WinMain which is your main program:**
103103

104+
{% highlight cpp %}
105+
gExp = new MyExperiment("eir2", "eir2", "C:/data/ExtrinsicIntrinsicRepetition/eir2/");
106+
107+
// initialize s626cards
108+
s626.init("c:/robotcode/calib/s626_single.txt");
109+
{% endhighlight %}
110+
111+
---
112+
113+
### Step 8 – Change the experiment setting if needed
114+
115+
**In the WinMain which is your main program:**
116+
117+
{% highlight cpp %}
118+
gScreen.init(gThisInst, 1920, 0, 1920, 1080, &(::updateGraphics));
119+
{% endhighlight %}
120+
121+
122+
The first two numbers are the relative position of the second monitor in pixels and the second two are the resolution in pixels.
123+
124+
---
125+
126+
### Step 9 – Don’t forget the target files
127+
128+
Add the experiment target folder (including `.tgt` files) to the main folder of your project where your main `.cpp` and `.h` files are (e.g. `C:\robotcode\projects\ExtFlxChord\ExtFlxChord`).
129+
130+
---
131+
132+
### Extra Notes
133+
134+
Your code should compile and build if you do all the steps carefully! If it still doesn’t, you might be using some source and include files or a template project that were not ported by “Ali Ghavampour” because he didn’t need them for his projects. You might need to fix them.
135+
136+
If that was the case, take a look at the “Codes ChangeLog” document and please add your final changes to the log file for future reference. I guess the last resort would be to contact me? Here is my personal email address: [email protected]

_guides/robotcode_createnew.png

63.9 KB
Loading
54.5 KB
Loading
77.8 KB
Loading

0 commit comments

Comments
 (0)