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

Document that the sync mount option should be used #143

Open
JennyLynnFletcher opened this issue Feb 18, 2022 · 1 comment
Open

Document that the sync mount option should be used #143

JennyLynnFletcher opened this issue Feb 18, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@JennyLynnFletcher
Copy link

JennyLynnFletcher commented Feb 18, 2022

Team ran code where power board ID instead of motor board ID. This caused what seems to be logging crash with a totally empty log file created.

The code which caused this is listed below where FRONT_WHEELS is the power board ID. Expect to raise key issue. Instead no logs created. Lack of logs persists even when known good code is run, USB reformat fixes this.

from sr.robot3 import *
import time
import math

R = Robot()

BACK_WHEELS = "SR0WAF"
FRONT_WHEELS = "sr0XT25"

def drive_wheel(power: float, fb: str, lr: str):
    board = None
    side = None

    if fb in ["front", "f"]:
        board = FRONT_WHEELS 
    elif fb in ["back", "b"]:
        board = BACK_WHEELS
    else:
        print("INVALID WHEEL SIDE '{}'".format(fb))
        return

    if lr in ["left", "l"]:
        side = 0
    elif lr in ["right", "r"]:
        side = 1
    else:
        print("INVALID WHEEL SIDE '{}'".format(lr))
        return

    try:
        R.motor_boards[board].motors[side].power = power
    except Exception as error:
        print("DRIVE WHEEL ERROR:", error)
 
def drive(power: float):
    drive_wheel(power, "front", "left")
    drive_wheel(power, "front", "right")
    drive_wheel(power, "back", "left")
    drive_wheel(power, "back", "right")

while True:
    drive(math.sin(time.time() / 2))
    time.sleep(0.1)
@trickeydan trickeydan added A | astprocd This relates to astprocd bug Something isn't working labels Feb 18, 2022
@trickeydan
Copy link
Contributor

We have identified the cause of this bug as not having the sync mount option in the Udisks configuration.

Therefore this bug is not technically an issue with astoria. However, we should document this behaviour in the requirements.

@trickeydan trickeydan added documentation Improvements or additions to documentation and removed bug Something isn't working A | astprocd This relates to astprocd labels Apr 17, 2022
@trickeydan trickeydan changed the title Log File Empty Document that the sync mount option should be used Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Idea
Development

No branches or pull requests

2 participants