how to alter the controller's code

Discussions about quadcopters/multi-rotors
zhoujincheng
Beginner
Posts: 8
Joined: Wed Sep 26, 2018 3:18 am

Re: how to alter the controller's code

Post by zhoujincheng »

I found the TIM2_CH4 in RX2 pin. But I'm not sure that RX2 can generate the PWM control signal. If could, what should I do to add an another deck, I have tried many times, but the compiling don't succeed....
zhoujincheng
Beginner
Posts: 8
Joined: Wed Sep 26, 2018 3:18 am

Re: how to alter the controller's code

Post by zhoujincheng »

hello,dear friend,
I meet a new problem . :lol:
I modify your servodeck's code and can control two servos successfully now. But the CF2 cannot fly.... I use TIM5_CH3 and TIM5_CH4 to generate PWM , using TX2 and RX2 expansion connectors. Does TIM5 also control motors , I guess? So the servodeck influence the CF's normal flying?
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: how to alter the controller's code

Post by tobias »

The motors are using TIM2 and TIM4 so should not have a conflict with TIM5. It must be something else. Can you get it to fly if you don't compile the servodeck driver?
Post Reply