|
Post by Colin White on Jun 11, 2017 13:36:04 GMT -7
New tracking code crashes if the Arduino or Servo USB cables are plugged in. If the cables are removed then the new GUI can be started and the USB cables can be plugged in. After defining the USB ports to the interface and saving the settings nothing happens. The python console reports an error on a "time" command specifying there is a naming error.
|
|
|
Post by Colin White on Jun 11, 2017 14:00:38 GMT -7
More details about the error reported above. Error is in getdata.py line 60 - global name time is not defined.
|
|
|
Post by leviw on Jun 11, 2017 15:13:24 GMT -7
hm, it looks like they used the time library without importing it. I would say to add 'import time' at the top, but it looks like they also have a variable named time, so it won't be quite that simple. If you're looking for a Quick Fix, you could add something like 'import time as sleepytime' then edit line 60 to be 'sleepytime.sleep(2)' That way there's no ambiguity over the word 'time' being the library time, or a variable time. Or just delete line 60 but that's not a great idea because it will hammer the database. MSU will probably make a more elegant patch at some point.
|
|
|
Post by Trevor MSGC on Jun 11, 2017 21:30:08 GMT -7
leviw is correct, it's an incorrect call that was pushed out to the repo. A patch will be coming for this tomorrow. In the meantime you can add the line 'from time import sleep' at the top of the getdata.py file.
|
|
|
Post by ukyeclipse on Jun 12, 2017 11:39:43 GMT -7
I believe we're having the same issue. Is the process different to load up IMU calibration? when i click update settings I get a not responding error. Is this related?
|
|
|
Post by Trevor MSGC on Jun 12, 2017 11:50:01 GMT -7
ukyeclipse,
I just pushed out an updated version of the arduino code and a fix for the line 60 error as well. Please do a git pull, load the arduino with the new code and let me know if you're still having issues.
-Trevor
|
|
|
Post by ukyeclipse on Jun 12, 2017 12:52:43 GMT -7
so when uploading the new code to the arduino I'm getting an error that reads "\Users\Ground Station\Desktop\Antenna_Tracker\GroundStation_UNO_V5\GroundStation_UNO_V5.ino:10:26: fatal error: Adafruit_GPS.h: No such file or directory"
#include <Adafruit_GPS.h>
any ideas? I feel like its probably something im just overlooking. thanks
|
|
|
Post by Trevor MSGC on Jun 12, 2017 14:09:10 GMT -7
That means that the required library isn't installed on your laptop. You'll need to download the adafruit gps library, which can be found here: github.com/adafruit/Adafruit_GPSand install it in your arduino libraries.
|
|
|
Post by ukyeclipse on Jun 13, 2017 6:35:27 GMT -7
im now getting the same error with "include adafruit_sensor.h" is there a separate libary or should this have been with the gps library?
|
|
|
Post by ukyeclipse on Jun 13, 2017 6:39:34 GMT -7
I believe i got that to go away but it says now "include Adafruit_BNO055.h>" how many libraries will i need?
|
|
|
Post by Trevor MSGC on Jun 13, 2017 7:22:53 GMT -7
Each of the "include x" calls at the top of the code imports a different library. Some are included in the default Arduino install, the rest you'll need to install.
|
|