Python accel_includes_gravity property error #131
-
Hello! I have a system with 4 modules in a family and I want to set the accel_includes_gravity false, but it gives me a bunch of errors. My code:
The error: Traceback (most recent call last): Sadly I cannot understand any of this so here I am asking if did I do something wrong, or is this a bug? Many thanks:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Istvan, Thanks for the question. One quick note before debugging the python issue you are running into -- the "accel_includes_gravity" feature is implemented on the mobile I/O android and iOS apps, but not yet on the modules. From your suggestion, we are putting this together this as a feature on the modules; we should have this out by the end of the week if not sooner, and you will be able to update the modules through scope. I'll update this post when we finish testing and releasing that. Regarding the python error you are getting -- I've been testing here, and am unfortunately unable to replicate the issue. I think this may be due to a python version mismatch? Can you run the following code in python so I can see what version of the Python API your system is running? I've just shown my output below from a python terminal:
However, the code itself you listed looked fine. For reference, here is the sample code I was running to test the feature here; I'm again displaying the output from running in the Python terminal so you can see the result of each line in turn:
Thanks,
|
Beta Was this translation helpful? Give feedback.
-
Hello! I ran the code that you provided, and my Python version was indeed old, so I upgraded it to 2.2.1 and now it compiles just fine. Many thanks, and I am looking forward to the actuator implementation :). Istvan
|
Beta Was this translation helpful? Give feedback.
-
Istvan, I'm glad that worked for you! Sorry for the delay -- we just released actuator version 15.5.0, which supports this feature. You can update modules on your network by opening Scope and going to the "firmware updates" tab in scope. Let us know if you have any issues here. Best,
|
Beta Was this translation helpful? Give feedback.
Istvan,
Thanks for the question.
One quick note before debugging the python issue you are running into -- the "accel_includes_gravity" feature is implemented on the mobile I/O android and iOS apps, but not yet on the modules. From your suggestion, we are putting this together this as a feature on the modules; we should have this out by the end of the week if not sooner, and you will be able to update the modules through scope. I'll update this post when we finish testing and releasing that.
Regarding the python error you are getting -- I've been testing here, and am unfortunately unable to replicate the issue. I think this may be due to a python version mismatch? Can you run the following…