Frsky Telemetry HOTT for AQ code.

Radio, Telemetry, FTDI/USB, ESCs, Motors, etc.

Frsky Telemetry HOTT for AQ code.

Postby chestnut » Wed Apr 01, 2015 2:28 pm

Hi all,

Long time I don't update any thing for AQer, I have some experiences to develop from AQ open source code, so for now, i'll update some modules to upgrade for AQ code such as: Frsky Telemetry HOT, auto disarm after 3s if no throttle (never use diasrm :D) , garanti for start up like NAZA A2, Smart mode fly...Some algorithms like Quastos, AQ code for fixed-wing, HIL...

I will update some pics and videos at tomorrow for Frsky Telemetry HOT.

For Frsky telemetry HOT, you need invert signal like S-bus, like this, or you need invert logic ics (74HC04).

I'll update code and pic soon as soon possible.
Attachments
sport_inversion_circuit_v2.gif
sport_inversion_circuit_v2.gif (9.25 KiB) Viewed 5907 times
Last edited by chestnut on Thu Apr 02, 2015 1:11 pm, edited 1 time in total.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Frsky Telemetry HOT for AQ code.

Postby chestnut » Thu Apr 02, 2015 1:01 pm

https://www.youtube.com/watch?v=FcG1ZV31D5k

I hope, Bill can integrated into AQ code. Thanks all.
Attachments
frsky_telemetry.h
(2.41 KiB) Downloaded 218 times
frsky_telemetry.c
(4.75 KiB) Downloaded 203 times
Last edited by chestnut on Fri Apr 03, 2015 1:20 am, edited 1 time in total.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Frsky Telemetry HOTT for AQ code.

Postby Cookiemonsta » Thu Apr 02, 2015 1:49 pm

Cool :)
So many interesting things ;)
So you implemented a L1 algorithm by yourself?
Cookiemonsta
 
Posts: 126
Joined: Thu Apr 11, 2013 3:31 pm

Re: Frsky Telemetry HOTT for AQ code.

Postby bn999 » Thu Apr 02, 2015 2:52 pm

Toan,

This looks like some clean code - very nice. I think all this would need to be done is to hook it up to the comm module instead of working with the serial ports directly so that it can work with the existing structure. A new commStreamTypes can be added (or more likely an unimplemented slot reclaimed for Frsky.)

Slightly unrelated: the idle calculations in AQ should probably be consolidated into the supervisor module. This module would be the third duplication of that code.
bn999
 
Posts: 1559
Joined: Thu Jun 21, 2012 11:40 pm

Re: Frsky Telemetry HOTT for AQ code.

Postby chestnut » Thu Apr 02, 2015 5:25 pm

bn999 wrote:Toan,

This looks like some clean code - very nice. I think all this would need to be done is to hook it up to the comm module instead of working with the serial ports directly so that it can work with the existing structure. A new commStreamTypes can be added (or more likely an unimplemented slot reclaimed for Frsky.)

Slightly unrelated: the idle calculations in AQ should probably be consolidated into the supervisor module. This module would be the third duplication of that code.


Hi Bill,

I think it better, I just use serial port directly for test, now it had working good. Can you implement for AQ code with a comm module.

I'll implement some another modules and post on forum for all.

Thanks.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Frsky Telemetry HOTT for AQ code.

Postby Max » Fri Apr 03, 2015 4:05 pm

Chestnut, have you tried this code? To be honest I don't understand how it works. For one thing, with S.Port you need to listen for the Rx to request data before sending any. The data IDs you're sending are from the old FrSky protocol, but trying to send it in SPort data format. Also for example, I'm not sure how you're sending double values like lat/lon via uint16.

We do have some SPort telemetry code in the works which should hopefully be online soon. I've been hesitant to post anything that sounds like a promise or timeframe ;) but it's happening sooner than later.

-Max
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Frsky Telemetry HOTT for AQ code.

Postby chestnut » Fri Apr 03, 2015 10:24 pm

Max wrote:Chestnut, have you tried this code? To be honest I don't understand how it works. For one thing, with S.Port you need to listen for the Rx to request data before sending any. The data IDs you're sending are from the old FrSky protocol, but trying to send it in SPort data format. Also for example, I'm not sure how you're sending double values like lat/lon via uint16.

We do have some SPort telemetry code in the works which should hopefully be online soon. I've been hesitant to post anything that sounds like a promise or timeframe ;) but it's happening sooner than later.

-Max


Yes, it's working good, you can see it: https://www.youtube.com/watch?v=FcG1ZV31D5k

For S-port, you need invert signal TX like this:

You can try it, Just: call frsky_telemetryInit(); and frsky_telemetryEnable(); on aq_init.c

And using script lua on Frsky new firmware:
Attachments
SCRIPTS.7z
(5.64 KiB) Downloaded 191 times
Screen Shot 2015-04-04 at 4.15.00 AM.png
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Frsky Telemetry HOTT for AQ code.

Postby chestnut » Mon Apr 06, 2015 11:21 pm

Can you want turning PID with using Frsky and Telemetry on Frsky? Now I'm testing some code for this, really cool.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam


Return to Connections

Who is online

Users browsing this forum: No registered users and 5 guests