GithubHelp home page GithubHelp logo

Comments (4)

Novakasa avatar Novakasa commented on September 25, 2024 1

Are you seeing this with motors used in switches? Do other motors work fine for you? I am using L-motors and 88008 motors as well as Spike prime motors for switches and they work fine for me. I haven't tested non-train motors on trains yet though. But I didn't have an issue with using the DCMotor class for motors with encoders up until now.

Can you post the logs as found here?

Windows: `%APPDATA%/Godot/app_userdata/brickrail-gui/logs`
Linux: `~/.local/share/godot/app_userdata/brickrail-gui/logs`

Also which pybricks firmware version are you using? The releases come with firmware binaries in release/firmware in case a pybricks update breaks some things.

Using the rotation sensor to track a specific speed is definitely something to look at, but I would need to think about how to integrate it with the marker speeds. I am currently using marker speeds to compensate for the fact that a train needs more power to go up a hill and less to go downhill, but if the train has a rotation encoder it will behave differently in these cases.

For experimenting with the python programs, you should be able to just modify the files in the release/ble-server-<platform>/hub_programs folder and a restart of brickrail should detect the change and download the new program to the hub automatically (hopefully, please report if this doesn't work). For trains, only the smart_train.py file is actually used as well as the layout_controller.py

A dev environment may be setup something like this:

  • Download Godot 3.X and open the project brickrail-gui/project.godot
  • Create a python 3.10 environment in .env/ and activate it (I am using anaconda for this, which might actually be required, not sure there)
  • install the dependencies in requirements.txt via pip install -r ./requirements.txt

from brickrail.

Novakasa avatar Novakasa commented on September 25, 2024 1

Confirmed with new pybricks firmware, I will ask upstream whether that is a regression or intended.

https://github.com/orgs/pybricks/discussions/1364

from brickrail.

Novakasa avatar Novakasa commented on September 25, 2024 1

This was confirmed to have been unintended behaviour from the beginning, so I added the try except block to account for it. Thanks for reporting!

from brickrail.

iragm avatar iragm commented on September 25, 2024

Thanks for the help! So far, I have determined that the pybricks firmware v3.3.0b4-6-g7aca502e bundled with brickrail works fine. Something about the current version doesn't -- not sure if this is a regression in pybricks or a deliberate change. I am still in the process of setting up a layout and seeing what works and what doesn't, I will continue to experiment with this over the next week and report back on how things go.

from brickrail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.