Welcome to 3DRPilots.com

Sign up and join the largest 3D Robotics drone community!

  1. human

    Joined:
    Feb 9, 2017
    Messages:
    33
    Likes Received:
    17
    I've made a change to the scripts that run on Solo that should greatly improve the response time when running led_control.py. On the new version, I only get a 1-2 second lag between clicking the button in Solex and the LEDs changing color.

    If you run the install script, it will update everything to the latest version.
     
    Pedals2Paddles likes this.
  2. XevetS

    Joined:
    Dec 29, 2016
    Messages:
    103
    Likes Received:
    15
    just ran this script and it failed and returned an error something about a zipfile mismatch sorry didnt write down the error exactly, so I reverted back to the prior version and no error. please advise
     
  3. human

    Joined:
    Feb 9, 2017
    Messages:
    33
    Likes Received:
    17
    Whoops, sorry about that. I guess it actually helps if I push the changes to github. The new version is there now, so if you download again, it should work.
     
  4. XevetS

    Joined:
    Dec 29, 2016
    Messages:
    103
    Likes Received:
    15
    Yes works now @human very fast response time 2~3 seconds, keep up the great work!
    One thing do you have any sample scripts using the phase offset parameters I cant seem to get this to work. Probably scripting wrong myself or something?
     
  5. human

    Joined:
    Feb 9, 2017
    Messages:
    33
    Likes Received:
    17
    XevetS likes this.
  6. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,272
    Likes Received:
    1,239
    My result is the same. Phase Offset only seems to work with the strobe pattern. If used with the others, it doesn't work.
     
    XevetS likes this.
  7. Superman04p

    Joined:
    Mar 3, 2017
    Messages:
    22
    Likes Received:
    5
    Location:
    MS
    Ok guys.... had an issue with the led control firmware.... maybe yall can shed some light.... I used winscp to copy over the file then used the terminal inside SCP to run the install command... everything on screen matched the instructions (been doing this kind of stuff for years...very familiar with SSH and command lines) all lights on solo then flashes red about 10 times then "party lights" then completed the install... upon completion, solos front light began to flash... I used the reset command and it worked... all light commands that I tried worked flawlessly. I went to fly solo and was jittery as hell so I landed... from then on Winscp would no longer connect and every reboot had white rear and red flashing front lights.... I checked rev # of firmware and it showed autopilot at 93.4.2 ? or something close to that... had to factory reset and start over. That got me back to square one.
     
  8. human

    Joined:
    Feb 9, 2017
    Messages:
    33
    Likes Received:
    17
    Sorry to hear you had problems. I'd like to try and figure out what was different about your drone setup.

    Did you turn off and on the drone after installation?
    Had you made any other config or parameter changes before you started?
     
  9. Superman04p

    Joined:
    Mar 3, 2017
    Messages:
    22
    Likes Received:
    5
    Location:
    MS
    I didn't turn off right after the install....here's step by step... for the sake of info I have an aftermarket m8n gps installed (non mRo version) and the only parameter changes I have made are to 22v from 30v on battery warning and "face next waypoint on RTL"

    Ok.... so 1st step was to SSH into solo.. I copied the modified FW to solo and used console to execute the FW install.... the command lines on screen matched the instructions perfectly.... then all lights on solo flashed red for maybe 5 to 10 seconds...then "party lights" during FW install...after that all green one at a time....then to solid red rear and white flashing in front.(autopilot lights?)... anyway from here I ran the reset led command...it worked... tested a few strobe/color change commands...they worked.. so I went to fly... was BAD jittery.....BAD..... so I tried to just land(tried to bounce a little) from there i couldn't reconnect via ssh again.... after many restarts I finally factory reset... sorry about the lengthy post but I wanted to cover it all
     
    #69 Superman04p, Mar 27, 2017
    Last edited: Mar 27, 2017
  10. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,272
    Likes Received:
    1,239
    I think one other person had this happen. They redid the installation and it was fixed. Strange.
     
  11. human

    Joined:
    Feb 9, 2017
    Messages:
    33
    Likes Received:
    17
    I have a feeling it may have been flying without a power cycle that causes the jitters. I never tried it that way myself (I always power cycle after a firmware update, just out of habit). When I have a second, I'll give it a try, and see if I can reproduce the problem.

    I'm still not sure why you couldn't connect via SSH after the upgrade. That is strange...