Perfect
If you use the Pi code, normaly you Don't have to change anything into Azurit When rain is detected the button_home_click() send the mower to station.
I am not sure it's usefull to add the rainWS var but the rainUse need to be set to true and Don't forget to add this var in RpiRemote.cpp.
Also a new Var "stayInStationDuration" need to be set with a duration depending of the WeatherStation result or the timer start again the mower :blink:
The main loop is the def CheckSerial()
To start the readWS() each 10 seconde:
I work a lot on the code this week end so please remember where you have add data if you want to update.
For the Gyro it's better to find a GY88 but you can also use 2 parts ,a GY521 and a HMC5883 locate inside a GPS M8N https://www.amazon.fr/ZkeeShop-MPU6050-HMC5883L-Compatible-Arduino/dp/B072M7SY13
I have this 2 parts working together into Paranello mower:
GY521 connected on IMU I2c port, Compass on I2C5,GPS on GPS port (Maybe Workarround on PCB1.3) https://www.marotronics.de/3-Achsen-Gy-521-Gyroskop-Accelerometer-MPU-6050-Raspberry-Pi-Arduino https://www.marotronics.de/Beitian-BN-880-Flight-Control-Dual-GPS-Modul
If you use the Pi code, normaly you Don't have to change anything into Azurit When rain is detected the button_home_click() send the mower to station.
I am not sure it's usefull to add the rainWS var but the rainUse need to be set to true and Don't forget to add this var in RpiRemote.cpp.
Also a new Var "stayInStationDuration" need to be set with a duration depending of the WeatherStation result or the timer start again the mower :blink:
The main loop is the def CheckSerial()
To start the readWS() each 10 seconde:
Code:
if (time.time() > mower.timeToReadWS)):
mower.timeToReadWS=time.time() +10
readWS()
I work a lot on the code this week end so please remember where you have add data if you want to update.
For the Gyro it's better to find a GY88 but you can also use 2 parts ,a GY521 and a HMC5883 locate inside a GPS M8N https://www.amazon.fr/ZkeeShop-MPU6050-HMC5883L-Compatible-Arduino/dp/B072M7SY13
I have this 2 parts working together into Paranello mower:
GY521 connected on IMU I2c port, Compass on I2C5,GPS on GPS port (Maybe Workarround on PCB1.3) https://www.marotronics.de/3-Achsen-Gy-521-Gyroskop-Accelerometer-MPU-6050-Raspberry-Pi-Arduino https://www.marotronics.de/Beitian-BN-880-Flight-Control-Dual-GPS-Modul