DIY agriculture drone from waypoints

Hi I am a high schooler trying to make my personal agricultural sprayer drone. I would like it such that I input waypoints on QGroundControl and the drone goes to those points and sprays.

The drone I built is using a PixHawk 6c controller and I am using QGround Control.

I am planning to build a sprayer system similar to the video below:

Starting at 11:00

With these parts

1 L298N Motor Controller - $7 (

https://www.amazon.com/Qunqi-Controll…

)
1 12V and 5V DC buck converter (adjustable) - $12 (

https://www.amazon.com/dp/B01MQGMOKI?..

)
1 Sprayer Pump - $10 (

https://www.amazon.com/gp/product/B07…

)
1 Nozzle - $8 (

https://www.amazon.com/Hourleey-Misti…

)
1 Nozzle tubing - $8 (

https://www.amazon.com/REDTRON-Distri…

)

Would it be possible to input it in QGroundControl such that the sprayer is activated at the waypoints? Additionally can the motorcontroller be attached to the FMU PWM out?

Any help is appreciated.

Thank you so much

Welcome Shub

First of all would recommend to stay away from a regular 12V pump / motor. They have a set of carbon brushes build in which are well known to cause RF interference. - Not good for your FC and GPS.
→ Use a variable speed pump instead or at least just a pump with brush-less motor.
Another reason for having a variable speed pump is that the flow of liquid can be adjusted depending on the speed flown. So you always have the appropriate amount dispensed/sprayed.

This answers then your other question as such brushless pump could be controlled from the FC just like the flight motors. ( A regular 12V pump could only be switched on/off via a RC switch).

Here is also some info on how it can be applied:
https://ardupilot.org/copter/docs/zigzag-mode.html?highlight=spray+function

Thank you so much. I will look into that. I really appreciate your help