Skip to content

Commit 1d11e03

Browse files
Mock UI README Rework (#504)
* Adjusted cd filepathing * Added Windows Variant to README in mockUI * Version 0.3 of README rework * Improved Markdown Layout TODO: Finalize the building process so that the python file works correctly * Readme Rework Halted Touched up the Windows version and found a critical error that could not be solved with the time that I have. Please view the note in the README for more information. * Update TankController.py Remove unused import. --------- Co-authored-by: James Foster <github1@jgfoster.net>
1 parent af41d2f commit 1d11e03

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ gem 'arduino_ci', github: 'jgfoster/arduino_ci', branch: 'makefile'
66
# This is helpful when a change to arduino_ci breaks the tests
77
# gem 'arduino_ci', github: 'Arduino-CI/arduino_ci', tag: 'v1.6.0'
88
# gem 'arduino_ci', github: 'Arduino-CI/arduino_ci', ref: '9c1340a4f13638f81949172dc1ac9a0060576006'
9+
10+
gem "os", "~> 1.1"

extras/mockUI/README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
11
# TankControllerGUI
22
A Python GUI for TankController running on the mocks provided by `Arduino CI`.
33

4-
## Build Process
4+
## Build Process (Mac/Linux) [Not up to date]
55
Follow these steps
66
* `python3 -m pip install wxPython pybind11`
7-
* `cd GUI`
7+
* `cd extras/mockUI`
88
* ``filePath=`bundle exec which arduino_library_location.rb` ``
99
* `export ARDUINO_CI=${filePath%/bin/*}/gems/arduino_ci-1.3.0/cpp/arduino`
1010
* `make clean`
1111
* `(mkdir -p build; cd build; make -f ../Makefile)`
1212
* `python3 TankController.py`
1313

14+
## Build Process (Windows)
15+
Follow these steps
16+
* Install Ruby via https://rubyinstaller.org
17+
* Inside IDE terminal (Or equivalent Powershell terminal)
18+
* `cd extras/mockUI`
19+
* `irb`
20+
* `gem install bundler arduino_ci`
21+
* `require 'arduino_ci'; puts Gem::Specification.find_by_name('arduino_ci').gem_dir`
22+
* Copy the returned directory
23+
* `exit`
24+
* Inside powershell terminal
25+
* `python3 -m pip install wxPython pybind11`
26+
* `$env:ARDUINO_CI = "[INSERT DIRECTORY HERE]"`
27+
* `echo $env:ARDUINO_CI` Should return the directory that was given earlier
28+
* `pip install libTC`
29+
* Inside the MINGW64 terminal
30+
* `make clean`
31+
* If the make file fails, ensure you have make installed on the MINGW64 version of Git Bash
32+
* `(mkdir -p build; cd build; make -f ../Makefile)`
33+
* `python3 TankController.py`
34+
* NOTE: As of right now, there will likely be an error like this: `"D:\Code\OpenSource\TankControllerMockUIRework\extras\mockUI\TankController.py", line 6, in <module>import libTC ModuleNotFoundError: No module named 'libTC'`
35+
* This is because there are modules that cannot be found in libTC.cpp, for example, <Arduino.h> cannot be found and used in that file. No solution has been found as of yet.
36+
37+
## Makefile Specs
1438
The `Makefile` provides for making the following:
1539
* `libtc.dylib` (on macOS) containing the following:
1640
* `Arduino CI` mocks (essentially the Arduino OS)

0 commit comments

Comments
 (0)