2025-05-28 1:50 PM
This is the code i am using to pick up input from RC receiver to then change pwm values, but there seems to be a problem. PWM's are unresponsive to RC receiver which is connected to timer 2 channels. Is the given code correct? could it be that HAL_Delay is causing problems? I would appreciate any feedback, ive spent too much time trying to figure out the issue.
2025-05-28 1:58 PM
What if you change batteries into the transmitter thing? Just guessing.
2025-05-28 11:46 PM
The transmitter works perfectly fine actually, the problem is that i think ic_width stays empty, i cant check too because the ports for uart 2 are being used for timer and there are no other 5v resistant ports i can put the timer on.