This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from SJSURoboticsTeam/sphinx_docs
Created Sphinx docs
- Loading branch information
Showing
64 changed files
with
1,012 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Sphinx: Render docs" | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build HTML | ||
uses: ammaraskar/sphinx-action@master | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-docs | ||
path: docs/_build/html/ | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/dev' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ venv.bak/ | |
|
||
**.freq | ||
frequency_analysis.json | ||
**_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import sys | ||
import requests | ||
import serial.tools.list_ports as port_list | ||
import os, sys | ||
sys.path.insert(0, os.path.abspath("..")) | ||
from proj_modules.Serial import SerialSystem | ||
|
||
if __name__=='__main__': | ||
port = "/dev/ttyUSB0" | ||
get_initial_commands_url = "http://192.168.1.133:5000/drive" | ||
|
||
web_response = requests.get(get_initial_commands_url) | ||
print("Getting data from: " + web_response.text) | ||
|
||
try: | ||
serial = SerialSystem(port, 38400) | ||
print("Using port: " + port) | ||
except: | ||
ports = list(port_list.comports()) | ||
print('====> Designated Port not found. Using Port:', ports[0].device) | ||
port = ports[0].device | ||
serial = SerialSystem(port, 38400) | ||
|
||
while True: | ||
web_response = requests.get(get_initial_commands_url) | ||
serial.read_write_serial(web_response.text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import sys | ||
import requests | ||
import serial.tools.list_ports as port_list | ||
import os, sys | ||
sys.path.insert(0, os.path.abspath("..")) | ||
from proj_modules.Serial import SerialSystem | ||
|
||
if __name__=='__main__': | ||
port = "/dev/ttyUSB0" | ||
get_initial_commands_url = "http://192.168.50.243:5000/drive" | ||
|
||
web_response = requests.get(get_initial_commands_url) | ||
print("Getting data from: " + web_response.text) | ||
|
||
try: | ||
serial = SerialSystem(port, 38400) | ||
print("Using port: " + port) | ||
except: | ||
ports = list(port_list.comports()) | ||
print('====> Designated Port not found. Using Port:', ports[0].device) | ||
port = ports[0].device | ||
serial = SerialSystem(port, 38400) | ||
|
||
homing_end = "Starting control loop..." | ||
while True: | ||
response = serial.read_serial() | ||
if homing_end in response: | ||
while True: | ||
web_response = requests.get(get_initial_commands_url) | ||
serial.read_write_serial(web_response.text) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.