Welcome to 3DRPilots.com

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

  1. cynfab

    Joined:
    Nov 23, 2015
    Messages:
    133
    Likes Received:
    85
    With the addition of phase offset, and period, it should be possible to address the slowness of some patterns and maybe synchronization too.
     
  2. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    Actually, the synchronization was fixed by changing the frequency of the PixHawk to OreoLED sync signal. (It was supposed to be a 4000ms interval, but the PixHawk was sending it every 2000ms)

    However, there appears to be a bug in the OreoLED firmware (or API mismatch) so the phase offset and period only work with the strobe pattern. I don't have an up-to-date copy of the OreoLED source to figure out why, because 3drobotics has never released it. :(
     
  3. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    Awesome, I was hoping somebody would make an app. Sending the mavlink commands directly is much faster than using SSH / python.

    Feel like adding some touch screen "control sticks" to your app? I've got the networking layer of Solo reverse engineered, and I'm able to fly solo without a controller by setting up Solo as an access point, and sending the right sololink packets. (The RC control doesn't use mavlink) The only problem is that its hard to fly using a CLI. :)
     
    Pedals2Paddles likes this.
  4. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,400
    Likes Received:
    1,319
    Later today I'll reflash the new stuff and see how it looks. Can I just copy the py files in rather than reflashing the firmware too?
     
  5. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    There's new firmware version (93.7.3) as well, so I'd recommend just using the installer to get the new versions of the scripts and the firmware.
     
  6. cynfab

    Joined:
    Nov 23, 2015
    Messages:
    133
    Likes Received:
    85
    Long term goal is to be able to control the solo via my app. I've got a lot of the stuff stubbed out waiting for more round tuits.With just the macro mode I lost interest after getting the leds & motor test to work. Now with the Leds in better shape and a bit of free time I'm poking at it again.
    3DR probably lost interest in the ESC & LED code once they had it working and laid off the programmers, so no bug fixes or updates.
    My initial tests with the extended rgb control will only use strobe mode if the others don't work right.
    Without a controller would be cool, but I would worry about range.
     
  7. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    Yep, the range would definitely be less. But I was thinking it would mainly be used for manual takeoffs and landing when using smart shots or flying missions. I'd like to have Solo follow me on a bike, run, or kayak without having to bring a giant controller along for the ride as well. :)
     
  8. cynfab

    Joined:
    Nov 23, 2015
    Messages:
    133
    Likes Received:
    85
    That's a perfect use case, and should be doable.
     
  9. XevetS

    Joined:
    Dec 29, 2016
    Messages:
    147
    Likes Received:
    26
    Awesome job Man! quick question do you have the script for the police style LED's it looks bad ass plus I want to bust my neighbors....J/K lol or at least break some chops....
     
  10. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,400
    Likes Received:
    1,319
    Thanks. This should do it:
    Code:
    led_control.py --color 255 0 0 --pattern siren --applyto front_right --applyto back_left --color 0 0 255 --pattern siren --applyto front_left --applyto back_right
     
  11. XevetS

    Joined:
    Dec 29, 2016
    Messages:
    147
    Likes Received:
    26
    Awesome, worked perfect, red and blue color is awesome! Thanks man, ok time to bust the bad guys lol
     
  12. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,400
    Likes Received:
    1,319
    This is for some reason not working on mine. I deleted the old files and reran the script several times to no avail. Running led_control.py, it fails in the middle of the script.
     
  13. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    That some reason is that I screwed up the latest version. I've fixed the problem, and uploaded a fixed version to github. If you redownload and run the install script, everything should be happy when you reboot.
     
  14. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,400
    Likes Received:
    1,319
    Working great now. I love being able to change the flash rate and phase. That made a huge difference! I still need to prefix the commands with python in Solex. But I presume that's an issue with Solex. I can SSH the commands directly from my phone and laptop without and prefix.
     
  15. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    Thanks. I think I was finally able to fix the python / Solex issue in the latest version (0.05), which I uploaded this morning.
     
    Pedals2Paddles likes this.
  16. XevetS

    Joined:
    Dec 29, 2016
    Messages:
    147
    Likes Received:
    26
    Yes the latest version (0.05) works now in Solex without adding the python prefix, great job @human and Thanks for the hard work..
     
  17. BiggityBates

    Joined:
    Mar 4, 2017
    Messages:
    12
    Likes Received:
    0
    Location:
    Washington
    To upgrade to 0.05, do we just need to delete the old files and rerun the new script? Sorry, I'm new.
     
  18. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    If you're just installing it for the first time, all you have to do is run the script.

    The deleting old files was for people that were using very early versions of the program.
     
  19. BiggityBates

    Joined:
    Mar 4, 2017
    Messages:
    12
    Likes Received:
    0
    Location:
    Washington
    I think I am using 00.4, so it wont be a first time install.... just wondering if I needed to delete any files before running the 00.5 install_led_control.sh script. Thanks again for your hard work and providing us with this wonderful firmware upgrade/LED customization package!
     
  20. human

    Joined:
    Feb 9, 2017
    Messages:
    35
    Likes Received:
    18
    Running the install script should be all you need to do.
     
    BiggityBates likes this.