Control crazyflie's motor with a PWM command
Posted: Sat Jul 20, 2019 3:35 am
Hello,
I'm working on a crazyflie 2.0. I want to control the speed of each motors remotly thanks to a PWM signal. Basically what i want to do use a .launch with 4 args (PWM for each motors).
As I am new is ROS and with the crazyflie I dont really know where to start.
I think that i need to create a new message type called pwm.msg like that :
Int16_t pwm1
Int16_t pwm2
Int16_t pwm3
Int16_t pwm4
And create a new topic "Command_PWM".
In the firmware i saw that the powerDistribution_stock file control the motors speed. So i could fed in my 4 PWM there.
If someone can tell me if my approach is good or if i should look for a different way it would be appreciated.
I'm working on a crazyflie 2.0. I want to control the speed of each motors remotly thanks to a PWM signal. Basically what i want to do use a .launch with 4 args (PWM for each motors).
As I am new is ROS and with the crazyflie I dont really know where to start.
I think that i need to create a new message type called pwm.msg like that :
Int16_t pwm1
Int16_t pwm2
Int16_t pwm3
Int16_t pwm4
And create a new topic "Command_PWM".
In the firmware i saw that the powerDistribution_stock file control the motors speed. So i could fed in my 4 PWM there.
If someone can tell me if my approach is good or if i should look for a different way it would be appreciated.