Search found 31 matches

by thanhvu94
Fri Jun 30, 2017 2:39 pm
Forum: Developer Discussions
Topic: Where to change the source of actual positions feeding to off-board controller in ROS,
Replies: 3
Views: 2452

Re: Where to change the source of actual positions feeding to off-board controller in ROS,

Yes, I have done with the off-board controller using VICON.

Is the source file controller.cpp in the crazyflie_controller package the file which defines and feed the tf of crazyflie to the off-board controller? Or it is in another file?

Thank you.
by thanhvu94
Wed Jun 28, 2017 3:16 pm
Forum: Developer Discussions
Topic: Where to change the source of actual positions feeding to off-board controller in ROS,
Replies: 3
Views: 2452

Where to change the source of actual positions feeding to off-board controller in ROS,

Hello everyone, I'm working on a project in a laboratory which has developped a sensor to estimate the X and Y position of an object. I want to feed the X and Y estimation into the off-board controller of the Crazyflie on ROS to test if it's possible to control or not (while the actual Z and Yaw ang...
by thanhvu94
Wed Jun 21, 2017 9:27 am
Forum: General discussions
Topic: Why the default PID parameters for Z are high by default in ROS pid.h file?
Replies: 1
Views: 1788

Why the default PID parameters for Z are high by default in ROS pid.h file?

I'm wondering why the PID parameters by default for Z control are high (about 4000 to 5000)? Is there any technical reasons for that? Which are we trying to control, the thrust, the error between refernece height and real height, or what?
by thanhvu94
Mon Jun 19, 2017 1:10 pm
Forum: Developer Discussions
Topic: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller
Replies: 15
Views: 8213

Re: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller

I aslo think it would be nice if you can list all the name of the free peripherals that still can be used for extension. By this way, we will not touch the peripherals that are already used for the basic function of the Crazyflie.
by thanhvu94
Mon Jun 19, 2017 1:01 pm
Forum: General discussions
Topic: Will it affect the Crazyflie's flight if we use the extended pin for the breakout board?
Replies: 1
Views: 1695

Will it affect the Crazyflie's flight if we use the extended pin for the breakout board?

Hello,

I have generated the PWM signal using pin IO1 and Timer10 on the expansion board. And on the breakout expansion board, I solder an IR LED and some resistors. I'm wondering if these will affect the performance of the Crazyflie when I control the Crazyflie using VICON with ROS?

Thank you.
by thanhvu94
Mon Jun 19, 2017 12:55 pm
Forum: Developer Discussions
Topic: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller
Replies: 15
Views: 8213

Re: Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller

Here is the code I use: #include "deck.h" #include "debug.h" /* ST includes */ #include "stm32f4xx.h" #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_tim.h" /*Predefined macros*/ #define IR_TX_CARRIER_FREQ 56000 #...
by thanhvu94
Thu Jun 15, 2017 5:01 pm
Forum: Developer Discussions
Topic: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller
Replies: 15
Views: 8213

Re: Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller

I have just succeeded in generating the PWM anyway. Thank you so much for your help
by thanhvu94
Thu Jun 15, 2017 12:48 pm
Forum: Developer Discussions
Topic: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller
Replies: 15
Views: 8213

Re: Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller

Maybe I didn't give enough information. You are missing the K en DECK_DRIVER(pwm_ir). Edit: Also check out the howto if you haven't already. I succeed in the LED and DEBUG_PRINT example. However, still struggle to make PWM works. I will use pin IO1 and TIMER10. Do I need to declare .usedGpio = DECK...
by thanhvu94
Wed Jun 14, 2017 9:20 pm
Forum: Developer Discussions
Topic: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller
Replies: 15
Views: 8213

Re: Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller

I think I found one problem and the clue is DEC_DRIVER(pwm_ir); ;) I have tried to blink the LED exactly like this tutorial (https://wiki.bitcraze.io/doc:crazyflie:api:firmware:deck). There is no error when make and make cload, but the IO1 (PB8) pin is still not high when I measure by oscilloscope....
by thanhvu94
Wed Jun 14, 2017 10:00 am
Forum: Developer Discussions
Topic: [SOLVED] Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller
Replies: 15
Views: 8213

Re: Cannot generate the PWM signal to the breakout board of the STM32F405 microcontroller

I followed what you told me to do with Deck Drivers but I'm still not successful, there is nothing new printed in the console after I load the program into Crazyflie. Here is my pwm_irled.c created in crazyflie-firmware/src/deck/driver/src : #include <stdint.h> #include <stdlib.h> #include <string.h...