Fun, Learning, Friendship and Mutual Respect START  HERE


Unregistered
Go Back   HeliFreak > R/C Electronics Support > OpenTX Radios


OpenTX Radios OpenTX Radios Discussion and Support Forum


Like Tree4Likes
  • 2 Post By xoexoe
  • 1 Post By Rabid121
  • 1 Post By Ivan
Reply
 
LinkBack Thread Tools Display Modes
Old 09-03-2020, 01:22 AM   #1 (permalink)
Registered Users
 
Posts: 11,093
 

Join Date: Sep 2018
Location: Snohomish, WA
Default Check telemetry values on battery connection only (eg old pack plugged in)

Inspired by this post ( https://www.helifreak.com/showthread...=3#post8143467), I wanted to create a logical switch that checked for flight pack battery voltage automatically when plugging in the battery. This would get triggered only when plugging in the battery and only if the battery voltage is below some threshold value. It should not get triggered during flight.

Think of it as making sure you didn’t just plug in an old pack. Maybe this was obvious to everyone, but I had to think a bit in how to do it, so I thought it’d be useful to post how I did it here. I did it in 2 logical switches, not 1 unfortunately. But here it is..

First create a regular “less than” logical switch using your flight pack telemetry voltage and whatever critical value you want. This is L08 in the image below from my Horus. It will be used in a different LS, not directly.




Next, create an Edge logical switch [L09 above] that is (1) triggered by your voltage telemetry, which will act as a True Boolean in this context if there is data being received; (2) only true momentarily after 1.0 second of telemetry reception**; (3) is only triggered if the original voltage comparison [L08] is also true.

** I chose 1.0 sec instead of 0.0 sec because the system I tested this on (uSpirit v3.1.0, YGE LVT, Horus X10S, OpenTX 2.3.9) momentarily sent a 0.0 volt value upon telemetry acquisition. The 1.0 sec is to filter out that noise. Adjust to your liking.

If you’re unfamiliar with Edge, they are fantastic. The “1.0” means only ever consider the LS if the triggering switch is true for at least 1.0 sec, and the “<<“ means immediately after 1.0 sec without delay.

Finally, create a Special Function to alert you. I did something basic below:

Attached Thumbnails
Click image for larger version

Name:	742C8189-533C-4431-8E26-0B6BC9632895.jpeg
Views:	94
Size:	84.6 KB
ID:	878483   Click image for larger version

Name:	700AF9D7-5262-4484-818F-70160F0B1F2B.jpeg
Views:	93
Size:	95.5 KB
ID:	878485  
Hydros27 and Rabid121 like this.

Last edited by xoexoe; 09-03-2020 at 02:43 AM..
xoexoe is offline        Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 09-03-2020, 02:37 AM   #2 (permalink)
Registered Users
 
Posts: 2,275
 

Join Date: Oct 2011
Location: ~Vienna, Austria
Default

cool solution you found... great to see how good some systems are working with telemetry nowadays.

Ciao
Michael

nb: ... and as a pos. side effect this will put some pressure on the 'later starters' in the Tx business
xoexoe likes this.
__________________
our hangar: minicopter helis, YGE/Spirit/Futaba BLS/Jeti
Rabid121 is offline        Reply With Quote Quick reply to this message
Old 09-03-2020, 04:18 PM   #3 (permalink)
Registered Users
 
Posts: 2,142
 
My HF Map location
Join Date: Jun 2004
Default

To expand a bit on this, the same set of logical switches can be set for 75%, 50%, etc based on lipo voltage curves so they only trigger once at each point.

However, no specific way to play a number is available, so I set a GV as the appropriate number for each one and use "play value" of that GV then "percent" when the logical switch triggers.

This works well if you don't have current sensing, or in constant load configs where the voltage may be critical due to draw as opposed to total consumption (EDFs).
xoexoe likes this.
Ivan is offline        Reply With Quote Quick reply to this message
Reply




Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the HeliFreak forums, you must first register.
Please enter your desired user name, your REAL and WORKING email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself. Use a real email address or you will not be granted access to the site. Thank you.
Email Address:
Location
Where do you live? ie: Country, State, City or General Geographic Location please.
Name and Lastname
Enter name and last name here. (This information is not shown to the general public. Optional)
Helicopter #1
Enter Helicopter #1 type and equipment.
Helicopter #2
Enter Helicopter #2 type and equipment.
Helicopter #3
Enter Helicopter #3 type and equipment.
Helicopter #4
Enter Helicopter #4 type and equipment.

Log-in


Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Copyright © Website Acquisitions Inc. All rights reserved.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.

SEO by vBSEO 3.6.1