Thursday, July 26, 2012

ROV-Suite, OSX 10.8, Headaches

Yay for smooth(er) circles and OSX 10.8!
I'm not going to go into too many details tonight because of the time, but there's some new code sitting in the repo still warm from my keyboard.  I've started adding the code that reads the joystick's hats and buttons.  It's kind of a pain simply because it's a fair amount of work and then I have to figure out to sync the inputs that Monterey gets from it's GUI and from the joystick (and Tahoe) and make them all spit out a single, correct value to the ROV.  So far, the joystick's first hat can change the servo values and enable or disable a relay while the joystick's buttons can only enable or disable relays.  I'm going to add their servo code within the next few days.  So far, these settings can only be changed in the settings.ini file, but I will break them out to a GUI.  Speaking of the GUI, look at the compass!  I have finally gotten around to touching up the outer ring around the compass!  I think it looks much better (albeit maybe not perfect).  Please be aware that this code, Monterey 2.0.3 Beta, is not in the downloads page yet and is not yet ready for public consumption.  I just put it in the public for those of you who always want the latest, most cutting edge code.

Speaking of the cutting edge, I finally upgraded my MacBook Pro from 10.6.8 to 10.8!  I can finally enjoy all of the features of Lion and Mountain Lion!  I never thought I'd like the fullscreen apps part, but I'm finding that I enjoy using the fullscreen apps (and the four-fingered swipe between them) much more than I ever loved Spaces.  My only complaints so far are that 1) Apple doesn't ship any version of Make with 10.8 (first install Xcode 4.4 and then install the command line tools in the downloads section of Xcode's preferences) and 2) most of my programming tools are yet to be upgraded to be fully compatible with Mountain Lion.  I tried to install Valgrind tonight, but I couldn't even build it because compilation would stop with a "Your version of OSX is not supported" message.  Luckily, even though Qt 4.8.1 spits out about 25 warning messages (all with the "your version of OSX is not supported" text), it stil compiles my applications.  Although I have seem to have run into an issue... When running the debug build of Monterey on OSX 10.8 I get many crashes during startup and seemingly arbitrarily afterwards.  Most are sigsegv and sigabrt messages, although most seem to be related to QList.  The weird part is, when I switch the the release build of the same source code, everything runs along perfectly fine.  My guess is that maybe there's a compatibility issue with the debug libraries of Qt 4.8.1 and OSX 10.8.... or perhaps I'm just a crappy programmer (a much more likely alternative, except for the fact that these issues only plague the debug build).  ;)  My advice is to hold off on Mountain Lion until your programming environment has fully been carried over.  If you don't wait, you might run into the headaches that I've been running into.  But, let me tell you, OSX 10.8 is one amazing OS and I have almost no regrets upgrading so early.  The rest of the user experience has been perfect!

Anyways, I'll be uploading the latest version of Monterey when I get it all worked out.  Hopefully these crashing issues with the debug build are related more to Mountain Lion and less to any errors I've created.

Thanks for stopping by!

Chris Konstad

6 comments:

  1. hi
    i interested rov control software and hardware can you show how connect raspberry and arduino
    thanks
    best rehgards

    ReplyDelete
    Replies
    1. Hey Ando,

      Are you planning to have the Raspberry Pi in the ROV with the Arduino or is it going to be the topside computer? Let me know what you were thinking, and I'll write up a tutorial about how to connect them.

      Chris

      Delete
  2. Thank you for your attention. Yes, I want to set the Raspberry Pi and Arduino into the ditch. before that I thought set into the ditch just Arduino but after reading your blog, I decided to do as you do. however I think that a better control the apparatus must also install one motor perpendicular to the motion. I also write to you in your other blog because I thought that you did not get my comment here to see prices. Also I'm interested in the transfer of the video signal to the surface

    ReplyDelete
    Replies
    1. Ok Ando. I'll work on writing a tutorial for connecting an Arduino to a Raspberry Pi soonish. For right now, you could choose between USB, SPI and I2C (to name a few). A motor perpendicular to the forward motion would really benefit your maneuverability because it would let you translate side to side. As far as video goes, you could either use an IP camera or a MuxLab video balun (RCA -> Ethernet).

      Delete
    2. thank you this will be a great help for beginners like me

      Delete
  3. Excuse me for my English. my interpreter translates wrong (ditch) is rov
    please excuse me next time I'll take a closer

    ReplyDelete