Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Davis wind vane, wind direction offset
#6

Well in that case
Edit the tx software file Process_IDx.ino about line 187
 
Code:
// calc the current wind direction wind_dir = ((vane_reading - Min_vane_reading) * 360L) / (Max_vane_reading - Min_vane_reading); wind_dir += WDir_offs; //addition to turn compass 180 degrees wind_dir += 180; if (wind_dir > 360) wind_dir -= 360; //end of addition // Precaution in case the calib values are wrong or slightly off if (wind_dir > 360) wind_dir = 360; else if (wind_dir < 0) wind_dir = 0; wind_dir = wind_dir * 10; return wind_dir; } #endif #endif // End ID2

the 180 of course can be changed to get your angle correct.
cheers, Ian
Reply


Messages In This Thread
Davis wind vane, wind direction offset - by Sun_Dancer - 17-08-2023, 10:44
RE: Davis wind vane, wind direction offset - by werk_ag - 19-08-2023, 02:29
RE: Davis wind vane, wind direction offset - by Sun_Dancer - 19-08-2023, 19:08
RE: Davis wind vane, wind direction offset - by catliNZ - 26-08-2023, 23:46
RE: Davis wind vane, wind direction offset - by werk_ag - 29-08-2023, 03:41
RE: Davis wind vane, wind direction offset - by catliNZ - 29-08-2023, 04:38
RE: Davis wind vane, wind direction offset - by Sun_Dancer - 30-08-2023, 01:59



Users browsing this thread: 1 Guest(s)