Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual TS30 and solution #2

Closed
TodWell opened this issue Feb 15, 2019 · 1 comment
Closed

Virtual TS30 and solution #2

TodWell opened this issue Feb 15, 2019 · 1 comment

Comments

@TodWell
Copy link

TodWell commented Feb 15, 2019

The last two strings in self.patterns within modules/virtual.py have each a white space to much, which prevents the creation of mock measurements.

class VirtualTotalStationTM30(VirtualSensor):
    """
    VirtualTotalStationTM30 simulates the Leica TM30 totalstation by processing
    GeoCOM commands.
    """

    def __init__(self, module_name: str, module_type: str, manager: Manager):
        super().__init__(module_name, module_type, manager)

        self.patterns = {
            '%R1Q,5003:\\r\\n': self.get_sensor_id,
            '%R1Q,5004:\\r\\n': self.get_sensor_name,
            '%R1Q,9027:(-?[0-9]*\.?[0-9]+),(-?[0-9]*\.?[0-9]+),2,1,0\\r\\n':
                self.set_direction,
            '%R1Q,2008: 1,1\\r\\n': self.measure_distance,
            '%R1Q,2167: 5000,1\\r\\n': self.do_complete_measurement
        }
`
@interkosmos
Copy link
Member

Thank you for pointing this out. Has been fixed with commit 630359e.

@TodWell TodWell closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants