Search found 8 matches

by zhoujincheng
Wed May 29, 2019 7:04 am
Forum: Quadcopters
Topic: how to alter the controller's code
Replies: 12
Views: 12336

Re: how to alter the controller's code

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 influ...
by zhoujincheng
Wed May 29, 2019 3:55 am
Forum: General discussions
Topic: fail to flash using radio
Replies: 1
Views: 1492

fail to flash using radio

I bought a new CF2,and I flash crazyflie-firmware using radio,i'm sure the source code is right.

after flashing , CF2 still cannot fly and the two blue LEDs (2 and 3)are fully fit.when I connect to radio with crazyflie client. the four LEDs are all fully fit(1,2,3,4). why this problem happen?
by zhoujincheng
Fri Jan 11, 2019 2:25 am
Forum: Developer Discussions
Topic: how to use TIM2
Replies: 1
Views: 1318

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: 12
Views: 12336

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: 12
Views: 12336

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: 12
Views: 12336

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: 12
Views: 12336

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: 12
Views: 12336

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: