All Posts (14054)
Sort by
Find more videos like this on DIY Drones
Here is the solution:In the 2.0 code, try this:Reverse IR sensor-old code-return constrain((int)(((infrared0-511)*90)/max_ir),-60,60);new code-return -constrain((int)(((infrared0-511)*90)/max_ir),-60,60);Reverse IR sensor pitch-old code-return -constrain((int)(((infrared1-511)*90)/max_ir),-60,60);new code-return constrain((int)(((infrared1-511)*90)/max_ir),-60,60);Just reverse the sign in front of "constrain".