29-03-2020, 11:02
As I’m at home at lot now I can spend some time improving my setup, I recently purchased an Inspeed pair for wind speed and direction, the speed sensor is the reed switch model, so I specify according to this, Use 22 for Inspeed Vortex, read switch sensor.
#define WINDSPEED_SENSORTYPE 22
But I get a compilation error, 'FORM_FACTOR' was not declared in this scope
It looks to me like I need to add the following code
#if (WINDSPEED_SENSORTYPE == 22) // Inspeed Vortex Reed Sensor : Speed Pulse/sec 2.5 mph = 1.1176 m/s
#define ClickPerRev 1
#define FORM_FACTOR 1.1176
#endif
If I do it compiles ok, but want to be sure the calibration is the same for the reed switch version as the Hall sensor version.
I’m using WeatherDuino_Pro2_Universal_TX_v7.0_b002
Thanks Andy
#define WINDSPEED_SENSORTYPE 22
But I get a compilation error, 'FORM_FACTOR' was not declared in this scope
It looks to me like I need to add the following code
#if (WINDSPEED_SENSORTYPE == 22) // Inspeed Vortex Reed Sensor : Speed Pulse/sec 2.5 mph = 1.1176 m/s
#define ClickPerRev 1
#define FORM_FACTOR 1.1176
#endif
If I do it compiles ok, but want to be sure the calibration is the same for the reed switch version as the Hall sensor version.
I’m using WeatherDuino_Pro2_Universal_TX_v7.0_b002
Thanks Andy