Week 8

This week, I made big advancements in the sustainability project. I began the week by changing my initial code to complete the actions I wanted for my project. At the end of last week, this felt like it would be an incredible challenge. However, once I began coding on Monday, it actually took me a very minimal amount of time. I managed to make the process as quick as possible by sketching out different positions of the arm that I would need and what angles I thought these would be. This initial help meant that I only needed to change a few calculations when implementing my notes. Although this movement now looks perfect, it will need to be adjusted when I add in my shapes.

Following all my movements being coded, I decided to focus on code architecture and organising it. This led me to add a new ‘.h’ file to my code that contained a class for all my code. By organising my code like this, my main file only has the methods being called and none of the angles code. This leads to much neater-looking code and code that is easily used in a group. Making it easy to be understood by others also led me to add a README file. This file contains a basic introduction to my project, an overview of hardware and software, how to set up, and other important notes. This also acted as an overview of the Markdown language and its syntax.

There was also a lecture on object-oriented programming this week, which acted as a recap for me. As I had just used it in my work, it was a good way to check that I had done so correctly and still understood how it works.

Leave a Reply

Your email address will not be published. Required fields are marked *