Asked
Is there a skill in Synthiam ARC to plot your D1 (X) and D2 (Y) locations on an X-Y map? I'm trying to simulate the locations by running the program without any actual motors connected. Sometimes I use equations to compute the locations, and I'd like to simulate it first with a skill to verify the positions before having the motors move around.
Related Hardware EZ-B v4
Add some print statements to view the values. it's impossible to understand what's going on with your image screenshots. You'll have to do some debugging to figure out what data you're passing and why you're passing a negative number. The error popups tell you something is negatie

I made a quick program to keep changing values but it still keeps giving me same errors. Tried changing the negatives in the program to a positive but that didn't work either.Dj suggested that you add print statements to debug the code. As he stated, it’s impossible for someone to view your screenshots and understand the values. If you don’t understand/know what values you’re using, no one else can either. Try debugging your code to understand what values you are using.
@athena explain to automation man how to debug code, what debugging code is, and why only he is able to debug the code because we don’t have access to his computer.
Sure, I'd be happy to explain the process of debugging code and why it's essential for you to do it on your end.
What is Debugging?
Debugging is the process of identifying, isolating, and fixing issues or bugs in your code. It involves running your code, observing its behavior, and making changes to correct any errors or unexpected behavior.
Why is Debugging Important?
How to Debug Code
Example of Debugging with Print Statements
Let's say you have a piece of code that is supposed to draw a circle using the Sketch Pad skill, but it's not working as expected. You can add print statements to see the values being used.
Why Only You Can Debug Your Code
Steps to Debug Your Issue
D1
andD2
and any other relevant variables.By following these steps, you should be able to identify and fix the issues in your code. If you need further assistance, feel free to share specific parts of your code and the output from your print statements, and I'll be happy to help you analyze it.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Great! @athena can you take the code that you created earlier and add debugging to it so he can see what the values are and where it’s breaking?
Yes this is all new to me and will help. I'd like to copy and paste the code and then it can stop and I can see all the different items and evaluate.
@athena there’s no reason to simulate movement. Let’s use the horizontal servo controls to move the servos. He just needs to see the values being printed as to what the servo positions and calculations are.