First, we will create a CSV file with many status, speed in mph, altitude in feet, and temperature in degrees Fahrenheit values separated by commas. Each line in the file will represent a set of values that the surfboard sensor emulator will publish to the appropriate topics. In this case, it is not convenient to work with random values because we want to emulate real-life scenarios for a surfer and his surfboard.
Now, we will create a new file named surfboard_sensors_data.csv in the main virtual environment folder. The following lines show the code that defines the data retrieved from a short surfing session for the surfer and their surfboard.
The values separated with commas from left to right are the following: speed in mph, altitude in feet, and temperature in degrees Fahrenheit. First, the surfer is idle, he increases the speed when paddling...