PROGRAMMING ASSIGNMENT UNIT 2
[STUDENT NAME]
University of the People
1
PROGRAMMING ASSIGNMENT UNIT 2
2
Programming Assignment Unit 2
1.
If you were the designer of a hierarchical controller, which layer would you
assign to have the fastest update frequency and why? (Assignment part B)
The bottom-most layer of the hierarchical controller should have the highest update frequency because it is the layer that receives stimuli directly from the environment and must be able to most quickly send re-actions out to the environment. In contrast, the higher-most level of the hierarchical controller should have the lowest update frequency because it is the layer that receives the least stimuli from the environment and/or …show more content…
One thing I found interesting was how the various stimuli were being updated all the time and how they interacted with each other. For example, in my robot if the compass value or GPS array change, then the display_compass and display_gpsarray get updated for the user. These values would change if the steering changes and every moment in time that the robot is moving.
Thus as the steering continues (whether left, right or straight), then compass and GPS are constantly changing and being recalculated at higher hierarchical levels (Taipala, 2013). This helps me to think about the human brain in a different way as well. For example, when we are sleeping our bottom most layers are still receiving stimuli all the time, and this gets sent up our controller hierarchy where calculations are constantly being made as to whether we need to respond to them, such as waking up or shifting our bodied in our sleep. If we are asleep and have an itch, stimuli is sent up our hierarchy and our body has a way of responding to this itch without
PROGRAMMING ASSIGNMENT UNIT 2
4
waking us. These sorts of processes are going on all the time in the background, whether we’re conscious of them or