Embrio Forum
»
Embrio Support
»
Issues and Bugs
»
Program works when connected but not when uploaded
Rank: Advanced Member
Groups: BetaUser, Registered Joined: 3/31/2015(UTC) Posts: 47
|
Hi Admin; Please review this project and tell me where I went wrong. So far it works correctly when connected to the computer, but fails to do anything when uploaded to the car/mega. I am sure it is something I have overlooked, but I have tried and failed too find it. I get no errors when uploading, it just doesn't work. I could not find a way to post a zip file here so I placed it on one of my websites: http://systemdrive.ca/embrio/Car002.zipThank you in advance
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 81 time(s) in 76 post(s)
|
I'll take a look this weekend. It's kind of difficult still to debug a compiled program and figure out where the problem is. I usually add an led to my project and connect different things to it to see what's going on. I'll probably want to add some kind of hybrid mode where the code is compiled and runs entirely in the arduino but still sends back data to view in the software. I guess for now you can use a simple custom node to serial.print data and look at it in the terminal, but that's not super ideal and you'll still have to keep moving that node and recompiling.
I'll look as soon as I can and let you know what I find.
|
|
|
|
|
|
Rank: Advanced Member
Groups: BetaUser, Registered Joined: 3/31/2015(UTC) Posts: 47
|
Thanks.
You know me, I find some things that would never show up for others. I will be doing just as you said to troubleshoot the problems. I will let you know what I find. I was just a little excited to load the program and let the car go on it's own. I am still getting the hang of the agent based programming model. It sure makes something simple, as I learn more about it my thoughts are finding easy ways to implement my ideas.
|
|
|
|
|
|
Rank: Advanced Member
Groups: BetaUser, Registered Joined: 3/31/2015(UTC) Posts: 47
|
Ok, sorry to say this, but i think it's an undocumented feature (bug)  . It seems to be located within the Suppressed Activation Node. When working online the node clamps the output to 0 when it gets a negative number. But when uploaded it passes that number through.  Please ask for clarification if I confused you.
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 81 time(s) in 76 post(s)
|
Good find! Thank you for digging in. I don't often have a negative output connected to a non negative input so that could have easily gone unnoticed. It should be happening with all activation inputs not just on the suppressed activation node. I'll have this fixed for the next update. Thanks again! That's a pretty subtle but bad bug to have in there.
|
|
|
|
|
|
Embrio Forum
»
Embrio Support
»
Issues and Bugs
»
Program works when connected but not when uploaded
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.