FRC1076 / wapur_mecanum

Mecanum drive wapur 2019
0 stars 0 forks source link

Figure out what library to import to avoid the library import error for navx when doing simulation #6

Open mcolinj opened 5 years ago

mcolinj commented 5 years ago

If we have the following in the robot.py code:

import robotpy_ext.common_drivers.navx as navx

And we run the robot simulator like this:

python3 robot.py sim

We get the following error:

5i3RRA-Book:mecanum matthewj$ python3 robot.py sim Traceback (most recent call last): File "robot.py", line 3, in import robotpy_ext.common_drivers.navx as navx ModuleNotFoundError: No module named 'robotpy_ext.common_drivers.navx'

It seems the new navx installation is no longer plugged into the robotpy_ext.common_drivers

mcolinj commented 5 years ago

WIth the new navx library install, we just need to import the navx library as:

import navx as navx

mcolinj commented 5 years ago

Marcus, you can fix this a part of your next commit. Just mention this issue in the commit message. And any others.