| Electronic Components Datasheet Search |
|
DEV-13956 Datasheet(PDF) 21 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13956 Datasheet(HTML) 21 Page - SparkFun Electronics |
|
21 / 26 page ![]() windgustmph = currentSpeed; windgustdir = currentDirection; } if(++seconds > 59) { seconds =0; if(++minutes > 59) minutes =0; if(++minutes_10m >9) minutes_10m =0; rainHour[minutes] =0; //Zero out this minute's rainfal l amount windgust_10m[minutes_10m] =0; //Zero out this minute's gust } //Report all readings every second printWeather(); digitalWrite(STAT1, LOW); //Turn off stat LED } //smartdelay(800); //Wait 1 second, and gather GPS data } //While we delay for a given amount of time, gather GPS data static void smartdelay(unsigned long ms) { unsigned long start = millis(); do { while (ss.available()) gps.encode(ss.read()); } while (millis() start < ms); } //Calculates each of the variables that wunderground is expect ing void calcWeather() { //Calc winddir winddir = get_wind_direction(); //Calc windspeed //windspeedmph = get_wind_speed(); //This is calculated in t he main loop //Calc windgustmph //Calc windgustdir //Report the largest windgust today //windgustmph = 0; //windgustdir = 0; //Calc windspdmph_avg2m float temp =0; for(int i =0; i < 120 ; i++) temp += windspdavg[i]; temp /= 120.0; windspdmph_avg2m = temp; //Calc winddir_avg2m temp =0; //Can't use winddir_avg2m because it's an int for(int i =0; i < 120 ; i++) Page 21 of 26 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |