Giter VIP home page Giter VIP logo

Comments (8)

swehner avatar swehner commented on July 22, 2024

Hey,

Are you actually using the arduino for the goal inputs? This warning is only printed if a goal_event is received and it carries a duration amount that is too small.
So you'd have to check who is actually generating these goal events..
This is printed by the score plugin - not the event_debug plugin.
I'd try to see what is generating these goal events and what their format is.
If you're using an Arduino, do check the serial output in the serial monitor in Arduino IDE and verify what they format of the goal events is.

from foos.

danpillay87 avatar danpillay87 commented on July 22, 2024

Seems to be generated by yellow team with source: serial but I'll keep
digging and see if anything else uncovers itself in the logs! Thanks

On Aug 14, 2016 14:32, "swehner" [email protected] wrote:

Hey,

Are you actually using the arduino for the goal inputs? This warning is
only printed if a goal_event is received and it carries a duration amount
that is too small.
So you'd have to check who is actually generating these goal events..
This is printed by the score plugin - not the event_debug plugin.
I'd try to see what is generating these goal events and what their format
is.
If you're using an Arduino, do check the serial output in the serial
monitor in Arduino IDE and verify what they format of the goal events is.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#33 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ALzGpNgQL-cD9lb4T7sgDKlHZv2RIv0Kks5qfxjwgaJpZM4Jj4NJ
.

from foos.

swehner avatar swehner commented on July 22, 2024

Hey - if you're still having with issues with this, you can post some output from the serial monitor of the arduino IDE while you're using the arduino (pushing buttons, triggering goals) - Maybe I see something weird.
You can also put some print statements before https://github.com/swehner/foos/blob/master/plugins/io_serial.py#L39
to see what you're Arduino is sending.

from foos.

danpillay87 avatar danpillay87 commented on July 22, 2024

thanks - I'm testing this just with arduino IDE and you're right - seems like it's isolated to do with my arduino code - getting a constant output of non-standard characters. Guessing I've compiled the arduino code incorrectly which I'll look into myself but if this has been a problem for anyone else, please feel free to point me in the direction.
arduino-sketch.txt

from foos.

danpillay87 avatar danpillay87 commented on July 22, 2024

ok that was simple - didn't realise baud rate should be 115200 - with that the serial monitor still outputs constantly:

YG 24 908
YG 24 912
YG 32 892
YG 28 904
YG 28 908
YG 20 904
YG 28 920
YG 16 904
YG 16 920
YG 40 920
YG 28 876
YG 32 904
YG 32 904

That's with just the nano attached at the moment, hence the constant output to the PI & crashing - any ideas welcome, hardware is definitely not my area, though I'm doing my upmost!

from foos.

swehner avatar swehner commented on July 22, 2024

So, I think I need some more info on what you're using.
First of all, you're running the .ino file from the repository, right?
I understand that you have connected the IR receiver and Emitter, right? If not - if you just plugin the arduino as it is without connecting anything, the input ports might be floating and this could easily produce this behavior...
There is no pull-down configured on those ports so if there's nothing connected it'll be reading either 1 or 0 randomly.

If you have something connected can you send the part numbers (just in case you have a slightly different component).

Does this also happen with the black IR sensor?

Check if it's something the IR sensor is receiving - see if it stops if you cover it with your hand or a dark plastic cup or something similar.

from foos.

danpillay87 avatar danpillay87 commented on July 22, 2024

thanks Swehner - I tried both with and without the ir received and emitter set-up - if I comment out the yellow goal only then all is well so I'm guessing it must just be a hardware issue otherwise the black goal would be triggering as well.

if (goalsEnabled) {
//processGoal(d, PIN_MASK_YELLOW, &goalY, &goalTimeY, &offTimeY, GOAL_YELLOW_STR);
processGoal(d, PIN_MASK_BLACK, &goalB, &goalTimeB, &offTimeB, GOAL_BLACK_STR);
}

I'm going to attempt switching the yellow goal pin from pin 10 to pin 12 to see if that resolves the issue.

from foos.

danpillay87 avatar danpillay87 commented on July 22, 2024

this seems to have done the trick thankfully in case anyone has any issues.

from foos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.