Search found 6 matches

by zhoujincheng
Fri Jan 11, 2019 2:25 am
Forum: Developer Discussions
Topic: how to use TIM2
Replies: 0
Views: 33

how to use TIM2

hello,dear developers,
I want use TIM2_CH4 to generate some PWM output by the expansion connector RX2. But I can't use the code "DECH_USING_TIMER2" in my **deck.c,
maybe something wrong with "Used peripherals"? Can you tell me how to modify the deck_core.h? or ...
by zhoujincheng
Tue Nov 06, 2018 4:13 am
Forum: Quadcopters
Topic: how to alter the controller's code
Replies: 10
Views: 1607

Re: how to alter the controller's code

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....
by zhoujincheng
Tue Oct 30, 2018 7:10 am
Forum: Quadcopters
Topic: how to alter the controller's code
Replies: 10
Views: 1607

Re: how to alter the controller's code

sorry for another question:if I want to add the second servo, should I add another servodeck2 ? or modify the servodeck's code? and how ...
by zhoujincheng
Sat Oct 27, 2018 6:43 am
Forum: Quadcopters
Topic: how to alter the controller's code
Replies: 10
Views: 1607

Re: how to alter the controller's code

thanks you very much,I want realize a functionality that two servos rotate certain degree between -45° and 45 ° when I press a gamepad's button, two servos stop till I press the button again. I don't know where and how to change the client code...
by zhoujincheng
Fri Oct 26, 2018 2:36 am
Forum: Quadcopters
Topic: how to alter the controller's code
Replies: 10
Views: 1607

Re: how to alter the controller's code

and next , how can I modify the crazyflie client to control the servo rotate?
by zhoujincheng
Wed Sep 26, 2018 6:33 am
Forum: Quadcopters
Topic: how to alter the controller's code
Replies: 10
Views: 1607

Re: how to alter the controller's code

thanks for your reply, and I have uploaded the servedeck.c program and add "PROJ_OBJ_CF2 += servodeck.o" to the Makefile. Then I connect the lines to the UAV, but the servo have no response. Can you tell me what should I do to control the servo work? :shock: