Robotics seems a good fit:
We ask and answer questions about robotics and automation systems, control systems, control theory, algorithms, actuators and sensors.
the writing algorithms [of] for robotic systems
But also Stack Overflow can be the site to go if the question is strictly programming related.
Be aware that questions that are too general or broad won't do good anywhere, so if you ask a question, be specific.