-
Notifications
You must be signed in to change notification settings - Fork 40
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
ID of sensors inside Technic Plus Hub #18
Comments
I'm not at this point yet, so I'm guessing the constants in https://github.com/virantha/bricknil/blob/master/bricknil/const.py aren't what you are looking for? In that case, the constants at the bottom of https://github.com/nathankellenicki/node-poweredup/blob/master/src/hubs/technicmediumhub.ts may be what you need? |
Thank you very much. Now I can access to the voltage, current sensors and accelerometer of the hub. However the tilt sensor (port 99 according to https://github.com/nathankellenicki/node-poweredup/blob/master/src/hubs/technicmediumhub.ts) does not work. I don't know if the port 99 is incorrect or I don't have the right sensor id. Will continue investigating. Thank you again. |
For those who want to use the sensor of Technic Plus Hub, you can add the following lines of code at the end of file \bricknil\sensor\sensor.py: class AccelerometerSensor(Peripheral):
class GyroSensor(Peripheral):
class TiltSensor(Peripheral):
|
Hello,
Thank you for this great project. I have tried your example technic_4x4.py which works well for me. Do you know the ID of the sensors inside the Technic Plus Hub (which also include an IMU)? I would like to get access to the orientation of the hub. Look forward to hearing from you.
The text was updated successfully, but these errors were encountered: