Topics
- GPS Communication
- Pointers Programming
GPS Communication
Try as we might, no one in class could get the GPS sensor to read any data. I am so unfamiliar with this sensor that I can't really think of any intelligable way to begin solving the problem. I was thinking that I might be the buildings but even as I walked into the open I wasn't getting any values.
Pointer Programming
As I first had to get the program running, there was a weird problem with the information. I think it might have something to do with the way I arranged the text file with my data.
I got it working after making that dchange I need to make.
Now I can modify the program to find La Nina instead of El Nino. I tried to mimic the structure of finding El Nino but something has gone terribly wrong. Now I can't even get the program to run without crashing.
Even once I had completely commented out the code I had added it continued to give me and error.
I restarted the code from start and then it worked again. I must have gottten rid of something without knowing it because I was now able to redo the program for La Nina.
Then I had to print the condition most close to normal in the data set. I first added a variable to track the location of the most with least deviation from zero. Then I was able to use that to cycle through the array with pointers.
Finding and printing all the times for an El Nino Storm wasn't too bad. I cycled though the data with a pointer and then printed at each step. I also setup some formatting for looks.
No comments:
Post a Comment