Jump to content
43oh

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
Link to post
Share on other sites
  • 4 months later...

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

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

Link to post
Share on other sites
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...