Welcome to 3DRPilots.com

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

  1. human

    Joined:
    Feb 9, 2017
    Messages:
    36
    Likes Received:
    18
    Just as an "FYI", I've enhanced the ardupilot-solo v1.5.3 firmware to expose all the features of Solo's motor pod LED controllers (aka OreoLED) over mavlink. With this firmware loaded on the pixhawk, each LED can be fully controlled, including setting any RGB value (color) and "blink" pattern (strobe, sine, etc.).

    A command line utility, installer, and firmware are available here:
    GitHub - hugheaves/solo-led-control: Command line utilities to control 3DR Solo LEDs

    DISCLAIMER: Obviously, this is a customized version of software that controls the flight functions of the 3DR Solo. If you choose to use this firmware, in all likelihood, this will cause your drone to crash, causing horrendous loss of life and billions of dollars in property damage. You have been warned.

    Here's a quick picture showing Yellow, Green, Blue, and Red.

    [​IMG]
     
    #1 human, Feb 15, 2017
    Last edited: Mar 3, 2017
  2. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    Does this create parameters that can be changed to do something with the lights? Or does this require an external application to do it?
     
  3. human

    Joined:
    Feb 9, 2017
    Messages:
    36
    Likes Received:
    18
    Right now, it requires an external app (or at least running a script on your solo / controller). I was thinking more in terms of dynamic LED colors based on flight conditions (battery level, etc)

    However, just setting a static color would be useful too. I hadn't thought of using parameters to do it, but that's a great idea. I'll see what I can come up with.
     
  4. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    Is it something you can execute manually by typing mavlink commands into Mission Planner? Or something like that? I've never done or tried anything of the sort, never needed to, but I think the capability is there.
     
  5. carpy

    Joined:
    Mar 10, 2016
    Messages:
    92
    Likes Received:
    47
    Location:
    Plymouth, MN
    Maybe the easiest way to is to execute a script using Solex.
     
  6. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    That would be much easier and more flexible than dragging my laptop with me and using MP every time.
     
    Bilge likes this.
  7. human

    Joined:
    Feb 9, 2017
    Messages:
    36
    Likes Received:
    18
    Well, this took longer than I thought. I tried but failed to get LED colors settable via parameters. I spent quite a bit of time researching, reading doc, and writing code, and no matter what I tried the parameter values seemed to get corrupted upon restart. I'm still not sure why, as my parameter code seems identical to what's already there. I suspect I'm hitting some sort of edge case, or buffer oveflow.

    Anyway, I've gone ahead and created a command line utility that can be run from Solex (or using an SSH connection to Solo). The settings don't persist between reboots (because no parameters are used), but it's easy to run the script by clicking a button in Solex.

    I've written some instructions on installation and usage here:

    GitHub - hugheaves/solo-led-control: Examples of controlling 3DR Solo LED's using Python DroneKit

    Feedback and suggestions for improvements are welcome.
     
  8. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    I love this stuff! Here's a quick review I did this evening. I should probably be asleep. But instead I'm tinkering with LEDs and eating thin mints.

     
  9. mrreddog

    Joined:
    Jan 3, 2017
    Messages:
    49
    Likes Received:
    7
    I really just want a reverse of stock lighting, red upfront and white in rear.........any way to make it stay that way as as default?
     
  10. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    I doesn't stick between reboots. As of today, the best you can do is make a command button in Solex to easily set it every time.
     
  11. human

    Joined:
    Feb 9, 2017
    Messages:
    36
    Likes Received:
    18
    It may be possible to have the script run when the solo boots up. I'll see if I can figure out how to do that.
     
  12. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    That would be awesome.
     
  13. fpvsteve

    Joined:
    May 6, 2015
    Messages:
    287
    Likes Received:
    112
    I installed the firmware and the 2 python scripts as described in the git. When I try to run the led_control.py or SoloLED.py script in the WinSSH terminal, I always get a syntax error.
    What am I doing wrong?
     
  14. carpy

    Joined:
    Mar 10, 2016
    Messages:
    92
    Likes Received:
    47
    Location:
    Plymouth, MN
    What's the error Steve?
     
  15. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    Someone on FB got the same thing. The file is corrupt. Redownload the py files from github, and reupload them to the solo. It worked immediately after that for him.
     
  16. fpvsteve

    Joined:
    May 6, 2015
    Messages:
    287
    Likes Received:
    112
    here is what I get. I downloaded and reinstalled several times. No success.
    Unbenannt.JPG
     
  17. Pedals2Paddles

    Joined:
    Mar 12, 2016
    Messages:
    2,564
    Likes Received:
    1,448
    Hmm. You're sure you used his newest version of AC on the pixhawk?
     
  18. carpy

    Joined:
    Mar 10, 2016
    Messages:
    92
    Likes Received:
    47
    Location:
    Plymouth, MN
    When you are downloading the file, you are getting the html page and not the actual source file.

    From his repo, use the 'Clone or download' green button and choose Download ZIP and save the file.
     
    #18 carpy, Feb 25, 2017
    Last edited: Feb 25, 2017
    fpvsteve likes this.
  19. fpvsteve

    Joined:
    May 6, 2015
    Messages:
    287
    Likes Received:
    112
    Thank you - that resolved it!!
     
  20. human

    Joined:
    Feb 9, 2017
    Messages:
    36
    Likes Received:
    18
    Jubalr likes this.