Jump to content
Forum sending old emails Read more... ×
Lauszus

LaunchPad Flight Controller

Recommended Posts

Hi everyone,

 

Just wanted to share my flight controller I wrote some time ago :)

 

Here is a video of it:

 

 

The code is available here: https://github.com/Lauszus/LaunchPadFlightController.

 

You can read more about it at my blog: http://blog.tkjelectronics.dk/2015/01/launchpad-flight-controller/.

 

post-3-0-49952600-1426886446_thumb.jpg

 

Regards

Kristian Sloth Lauszus

Edited by bluehash
Added image

Share this post


Link to post
Share on other sites

Hi everyone,

 

Just wanted to share my flight controller I wrote some time ago :)

 

Regards

Kristian Sloth Lauszus

This is so cool! Thanks for posting. Is your flight control code custom or ported over from any of the other open source projects?

Share this post


Link to post
Share on other sites

This is so cool! Thanks for posting. Is your flight control code custom or ported over from any of the other open source projects?

It's totally custom, but of course I got some inspiration from other open source projects like MultiWii and Cleanflight ;)

Share this post


Link to post
Share on other sites

Thanx for posting this. Lot's of inspiration.

 

Couple of questions. The ESCs and the protocol used via PWM does not seem to be the normal RC servo pulse protocol. Is there any documentation for the modified variant ?

 

Did you run accross some simpler code for handling a HC-06 on Android (haven't programmed too much in Java, so a simple starter would be nice) ?

 

- Thomas

Hi everyone,

 

Just wanted to share my flight controller I wrote some time ago :)

 

Here is a video of it:

 

 

The code is available here: https://github.com/Lauszus/LaunchPadFlightController.

 

You can read more about it at my blog: http://blog.tkjelectronics.dk/2015/01/launchpad-flight-controller/.

 

 

Regards

Kristian Sloth Lauszus

Share this post


Link to post
Share on other sites

It is sort of a standard. It's pretty much just as the standard PPM signal, but just with shorter pulse durations and synchronised with the main loop.

 

The thing is that normally a period of 2.5 ms (400 Hz) is used if "ONESHOT125" is set to 0 in the driver: https://github.com/Lauszus/LaunchPadFlightController/blob/master/src/PPM.c, but I am using what is known at OneShot125 where the maximum pulse duration is between 125 and 250 us.

 

The OneShot part of the name refer to the fact that the output to the motors are send out immediately once new motor output are available and is synchronised with the main loop. You can read more about it here: https://wiki.openpilot.org/display/WIKI/Using+OneShot125+or+PWMSyncand http://blog.oscarliang.net/oneshot125-esc-quadcopter-fpv.

 

With respect to the Bluetooth for Android you can just use the code I have already written: https://github.com/Lauszus/LaunchPadFlightControllerAndroid. The relevant files are these: https://github.com/Lauszus/LaunchPadFlightControllerAndroid/blob/master/app/src/main/java/com/lauszus/launchpadflightcontrollerandroid/app/BluetoothChatService.java, https://github.com/Lauszus/LaunchPadFlightControllerAndroid/blob/master/app/src/main/java/com/lauszus/launchpadflightcontrollerandroid/app/BluetoothProtocol.java,

and https://github.com/Lauszus/LaunchPadFlightControllerAndroid/blob/master/app/src/main/java/com/lauszus/launchpadflightcontrollerandroid/app/DeviceListActivity.java.

 

Hope this answer your questions :)

 

Regards

Lauszus

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×