Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Perl problem while intefaceing with lego mindstroms Untra sonic sensor

Options
  • 20-02-2012 6:13pm
    #1
    Registered Users Posts: 760 ✭✭✭


    So I using Perl to interface with my Lego mindstroms , using Lego::NTX.
    I’m trying to get the value of the Ultrasonic sensor, but it keeps return a value HASH(some hex number ).

    Sorry I don’t have the code, I’m in work and the moment .I can post it later tonight


Comments

  • Registered Users Posts: 1,477 ✭✭✭azzeretti


    The function is returning a hash reference. You'll just have to dereference it before you use it. Post the code and I'll take look if you want.


  • Registered Users Posts: 760 ✭✭✭mach1982


    azzeretti wrote: »
    The function is returning a hash reference. You'll just have to dereference it before you use it. Post the code and I'll take look if you want.

    Thanks

    Sorry I didn't post the code was busy, practicing soldering and forgot about it . I'll post it to night but you've give me a starting point.I've done a bit of googleing and think I know what to do .


Advertisement