Writing a program for mechatronics

So it's for our finals and I need to make a system for mechatronics. I have no idea what to do. This is something new for me. I just have these questions. Is C++ enough to start programming mechatronics? What should I learn before I start doing such task?

P.S.: If it isn't too much trouble, would any of you give me an example on what program to write for my system? Like a snippet of code at least so I can have an idea.

Thanks
Topic archived. No new replies allowed.