Robot Design Lab 2 The purpose of this lab was to get information from a website and make an interpretation of this data with the Cricket. My program to get data from a website: The program I wrote received a webpage from the site ----- via curl(under linux). It then saved this file to a local directory. The one statistic I was interested in getting from the website was the wind speed in Lowell. The file that was saved was then appropriately parsed with fscanf to get that statisic. The wind speed was then normalized to an appropriate range of the Cricket's motor speeds. It was then sent to a function that wrote to a serial port that was constantly sending signals to the Cricket. This was continuously done in a loop to update wind speeds. The two programs: mainwind.c (file downloading and parsing) and serialwind.c (communication with the Cricket) are attached. My protocol to interact with the Cricket: The value given to the serial port function that interacted with the Cricket was as follows: Wind Speed Transmitted value ------------ --------------- less than 30 Wind Speed/4 more than 30 8 The program then opened a serial port to communicate with the Cricket. The transmitted value was then sent to the Cricket. The Cricket program interpreted these values as motor speeds for motor port A. This was done with the intention of attaching a fan to the motor to simulate the wind in Lowell. Old values were stored so a constant fan motion could be maintained. The Cricket code ------ is attached.