nimdok
Novice Ballooner
Posts: 8
|
Post by nimdok on Jun 12, 2017 13:42:28 GMT -7
When I run the latest ground station code in anaconda the GUI pops up, then when I click update settings a new window pops up but the program freezes. In the console "Index Error" is printed repeatedly
|
|
|
Post by Sean Curry on Jun 12, 2017 14:06:45 GMT -7
We are seeing the same error if the Servo USB cable is plugged in. As soon as we hit Update Settings we are seeing Index Error (nothing else) in the Anaconda Prompt window. Servos work fine in Maestro.
|
|
|
Post by Trevor MSGC on Jun 12, 2017 14:23:40 GMT -7
This is a known bug, an update to the arduino github code should be getting pushed out within the next hour.
-Trevor
|
|
|
Post by Trevor MSGC on Jun 12, 2017 14:33:37 GMT -7
The new arduino code has been pushed out to the AntennaTracker repository on github. If you pull the new code and upload the new arduino code to the arduino it should fix this issue.
-Trevor
|
|
nimdok
Novice Ballooner
Posts: 8
|
Post by nimdok on Jun 12, 2017 16:11:24 GMT -7
I uploaded the code but I'm still getting the same error.
|
|
|
Post by Trevor MSGC on Jun 12, 2017 16:29:50 GMT -7
Can you post the code you used to this thread?
-Trevor
|
|
nimdok
Novice Ballooner
Posts: 8
|
Post by nimdok on Jun 12, 2017 16:58:20 GMT -7
|
|
|
Post by Trevor MSGC on Jun 12, 2017 17:37:17 GMT -7
The Antenna_Tracker/blob/master/GroundStation_UNO_V5/GroundStation_UNO_V5.ino file is the correct file. Do you have the ROM_Clear file as well? If you do go ahead and load that, let it run for about a minute and then re-load the V5 code from the Antenna_Tracker repository. The master branch of the AntennaTracker_withRFD uses different servo mapping in the ground station code so you'll want to stay away from that for now.
-Trevor
|
|
nimdok
Novice Ballooner
Posts: 8
|
Post by nimdok on Jun 13, 2017 7:54:44 GMT -7
I loaded the ROM clear code and then the GroundStation_UNO_V5.ino code to the Arduino and it worked. But now the autocalibrate isn't working.
|
|
|
Post by Trevor MSGC on Jun 13, 2017 8:40:20 GMT -7
Yeah, once the ROM clear code is loaded it removes the autocalibration offsets stored in the arduino. A new calibration will store the offsets back into the eeprom. From there you should be home free. Fingers crossed!
-Trevor
|
|
|
Post by ukyeclipse on Jun 14, 2017 6:40:06 GMT -7
We're having a similar issue. When we click update settings we often get index error, however what im more interested in is when the IMU calibration does pop up. When it pops up for us we get all 0's but nothing happens when i try to calibrate. The prompt window is constantly updating with new lines of all 0 calibration, however about every 10-15 lines we get 3 "index error messages". I can add a picture too i know thats a lot. Any suggestions?
|
|
|
Post by Colin White on Jun 14, 2017 16:45:13 GMT -7
That is the problem we had when we left the IMU on the tripod on start up. When we removed it and started the system we then got all threes. We then replaced it back on the tripod and everything worked. We also find having the IMU pointing backwards rather than forwards on the tripod seems to work better.
|
|
|
Post by markshancock on Jun 15, 2017 20:08:28 GMT -7
We are having the same index error
C:\Users\Mark\Anaconda2) C:\Users\Mark\GitHub\AntennaTracker_withRFD>python Antenna_Tracker_and_RFD_Controls_GUI.py C:\Users\Mark\Anaconda2\lib\site-packages\matplotlib\__init__.py:1405: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
warnings.warn(_use_error_msg)
('COM7', 'Arduino Uno (COM7)', 'USB VID:PID=2341:0043 SNR=954373134343517030D1')
Traceback (most recent call last):
File "Antenna_Tracker_and_RFD_Controls_GUI.py", line 1818, in <module>
mGui = MainWindow() # Launch the main window
File "Antenna_Tracker_and_RFD_Controls_GUI.py", line 337, in __init__
self.searchComPorts()
File "Antenna_Tracker_and_RFD_Controls_GUI.py", line 1474, in searchComPorts
if (eachLst[1].find("Arduino Uno") != -1) or (each.pid == 67):
IndexError: list index out of range We are running AntennaTracker_withRFD origin/Master 15Jun 2017 15:43 (03816c0) We updated the Arduino Code with the enclosed GroundStation_UNO_V5
Here is sample datastream coming from the Arduino (COM7)
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
|
|
|
Post by Austin MnSGC on Jun 16, 2017 7:09:23 GMT -7
We are having the same index error C:\Users\Mark\Anaconda2) C:\Users\Mark\GitHub\AntennaTracker_withRFD>python Antenna_Tracker_and_RFD_Controls_GUI.py C:\Users\Mark\Anaconda2\lib\site-packages\matplotlib\__init__.py:1405: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
warnings.warn(_use_error_msg)
('COM7', 'Arduino Uno (COM7)', 'USB VID:PID=2341:0043 SNR=954373134343517030D1')
Traceback (most recent call last):
File "Antenna_Tracker_and_RFD_Controls_GUI.py", line 1818, in <module>
mGui = MainWindow() # Launch the main window
File "Antenna_Tracker_and_RFD_Controls_GUI.py", line 337, in __init__
self.searchComPorts()
File "Antenna_Tracker_and_RFD_Controls_GUI.py", line 1474, in searchComPorts
if (eachLst[1].find("Arduino Uno") != -1) or (each.pid == 67):
IndexError: list index out of range We are running AntennaTracker_withRFD origin/Master 15Jun 2017 15:43 (03816c0) We updated the Arduino Code with the enclosed GroundStation_UNO_V5 Here is sample datastream coming from the Arduino (COM7) ~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
~,0.0000000,0.0000000,0.00,0.00,-3.31,4.81,0,3,0,0
Have you updated pyserial?
|
|
|
Post by markshancock on Jun 16, 2017 7:51:13 GMT -7
Re: Have you updated pyserial? Here is the update procedure we followed (we were already setup with Anaconda, etc for previous tracker) - pip install update pyserial
- Pip install matplotlib
- Download cp27 pyqt4.whl and pip install it
- Get latest AntennaTracker_withRFD
- Update Arduino from code in AntennaTracker_withRFD
- Run AntennaTracker_withRFD from Anaconda command prompt
|
|