move robot module to firmware package directory

This commit is contained in:
Kevin Matz 2019-08-05 11:14:00 -04:00
parent 535b76c88a
commit 1ee15ce3a5
5 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ __status__ = "Prototype"
import logging import logging
from language.ArmControlParser import ArmControlParser from language.ArmControlParser import ArmControlParser
from language.ArmControlListener import ArmControlListener from language.ArmControlListener import ArmControlListener
from robot import Robot from firmware.robot import Robot
from time import sleep from time import sleep
logger = logging.getLogger('__main__') logger = logging.getLogger('__main__')

View File

@ -12,9 +12,9 @@ Whilst an expansive scope, the principal development and implementation happened
* firmware/armCtl/armCtl.ino * firmware/armCtl/armCtl.ino
1. A streaming serial command & control protocol to communicate with the Arduino from a computer. 1. A streaming serial command & control protocol to communicate with the Arduino from a computer.
1. A Python3 module that is a threaded serial reader/writer, and state machine for the arm. 1. A Python3 module that is a threaded serial reader/writer, and state machine for the arm.
* robot.py * firmware/robot.py
1. An Antlr4 domain-specific scripting language for maneuvering the robot. 1. An Antlr4 domain-specific scripting language for maneuvering the robot.
* ArmControl.g4 * language/ArmControl.g4
1. A Python3 implementation of that language for the Robot module. 1. A Python3 implementation of that language for the Robot module.
* ArmCtlListener.py * ArmCtlListener.py
1. A Python3 module to interface the scripting language to the robot module. When called directly, this module also provides an interactive shell for the scripting language. 1. A Python3 module to interface the scripting language to the robot module. When called directly, this module also provides an interactive shell for the scripting language.

View File

@ -18,6 +18,7 @@ import configparser
import logging import logging
import sys import sys
from firmware.robot import Robot
from antlr4 import CommonTokenStream from antlr4 import CommonTokenStream
from antlr4 import InputStream from antlr4 import InputStream
from antlr4 import ParseTreeWalker from antlr4 import ParseTreeWalker
@ -25,7 +26,6 @@ from antlr4.error.ErrorListener import ErrorListener
from language.ArmControlLexer import ArmControlLexer from language.ArmControlLexer import ArmControlLexer
from language.ArmControlParser import ArmControlParser from language.ArmControlParser import ArmControlParser
from ArmCtlListener import ArmCtlListener from ArmCtlListener import ArmCtlListener
from robot import Robot
# define an error listener that raises SyntaxError exceptions # define an error listener that raises SyntaxError exceptions

0
firmware/__init__.py Normal file
View File