New Hubsan Upgraded Version on the way

More
03 Jan 2014 13:31 #17836 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
Ok, thanks to confirm.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 15:06 - 03 Jan 2014 15:49 #17841 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way

SeByDocKy wrote:

File Attachment:

File Name: model22.ini
File Size:8 KB


with this model, you can see how they use trim to acticate camera, etc...

Left Vertical Switch Up - Ch7 Momentary - Camera/AutoMissle/HoistA
Left Vertical Switch Down - Ch8 Momentary - Video/Missle/Sprayer/HoistB
Left Horizontal Switch Right - Ch5 Toggle - Toggle LEDs On/Off
Left Horizontal Switch Left - N/A


Here's a test build, so now the Hubsan protocol has 7 channels, (if channel 7 > 0, record video)

speedy.sh/WZhN6/deviation-devo7e-Unknown.zip

You'll have to configure this 7th channel, this template will assign video recording to the AIL DR1 switch (0=off, 1=on):
[channel7]
template=simple
[mixer]
src=AIL DR1
dest=Ch7
curvetype=expo
points=0,0

You'll have to figure out how to assign it to a trim button and find how to show an indicator on screen by yourself, I'm lazy, share your .ini section(s) when you get it working please :lol:
Last edit: 03 Jan 2014 15:49 by goebish.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 15:31 #17843 by goebish

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 15:47 #17844 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way

goebish wrote:

SeByDocKy wrote:

File Attachment:

File Name: model22.ini
File Size:8 KB


with this model, you can see how they use trim to acticate camera, etc...

Left Vertical Switch Up - Ch7 Momentary - Camera/AutoMissle/HoistA
Left Vertical Switch Down - Ch8 Momentary - Video/Missle/Sprayer/HoistB
Left Horizontal Switch Right - Ch5 Toggle - Toggle LEDs On/Off
Left Horizontal Switch Left - N/A


Here's a test build, so now the Hubsan protocol has 7 channels, (if channel 7 > 0, record video)

speedy.sh/WZhN6/deviation-devo7e-Unknown.zip

You'll have to configure this 7th channel, this template will assign video recording to the AIL DR1 switch (0=off, 1=on):
[channel7]
template=simple
[mixer]
src=AIL DR1
dest=Ch7
curvetype=expo
points=0,0

You'll have to figure out how to assign it to a trim button and find how to show an indicator on screen by yourself, I'm lazy, post your .ini section(s) when you get it working please :lol:



For instance ... it not working anymore ... :(


I added this part in the ini file


[channel7]
template=simple
[mixer]
src=Virt1
dest=Ch7
curvetype=zero/max
points=0

[trim1]
src=Virt1
pos=TRIMLV+
neg=None
step=193
value=-100,0,0

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:02 #17845 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
Does it work with the template I posted ?

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:07 #17847 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way

goebish wrote: Does it work with the template I posted ?



no ...

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:15 - 03 Jan 2014 16:17 #17848 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
That's weird because when channel 7 is > 0 it does the same thing that with the previous firmware I sent you with the Extra option set to 0.

(set packet[9] bit 1)

Investigating ...
Last edit: 03 Jan 2014 16:17 by goebish.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:24 #17849 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way

goebish wrote: That's weird because when channel 7 is > 0 it does the same thing that with the previous firmware I sent you with the Extra option set to 0.

(set packet[9] bit 1)

Investigating ...


I installed again the first version and it's working when value pass to "0" and stop to record when pass to "1'

Why you wrote "set packet[9] bit 1" and not 0 ?

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:27 - 03 Jan 2014 16:29 #17850 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
Can you do another test with the "Extra" build please ?

follow these steps exactly:

- don't bind (no battery in the quad)
- power on TX
- set Extra to 1
- power off TX
- plug battery
- bind
- set Extra to 0, wait a few seconds
- set Extra to 1

Does it work ?
Last edit: 03 Jan 2014 16:29 by goebish.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:31 - 03 Jan 2014 16:33 #17851 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way

SeByDocKy wrote: Why you wrote "set packet[9] bit 1" and not 0 ?


bit 0 if you prefer ( packet[9] |= 1<<0; )... LSB
Last edit: 03 Jan 2014 16:33 by goebish.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:31 #17852 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way

goebish wrote: Can you do another test with the "Extra" build please ?

follow these steps exactly:

- don't bind (no battery in the quad)
- power on TX
- set Extra to 1
- power off TX
- plug battery
- bind
- set Extra to 0, wait a few seconds
- set Extra to 1

Does it work ?



For sure it's working... As long extra is set to "1" no recording. I checked to keep it at "1"... nothing happened. Only when extra is set to "0"

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:37 #17853 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
Ok, and you confirm it works on the fly, you do not have to rebind to start video recording if Extra is not set to 0 when TX is powered on ?

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:44 #17854 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way

goebish wrote: Ok, and you confirm it works on the fly, you do not have to rebind to start video recording if Extra is not set to 0 when TX is powered on ?


Yes I confirm ... Will upload a small video on YT

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:47 #17855 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
no problem, I trust you :p

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:49 #17856 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way

goebish wrote: no problem, I trust you :p


In the case, I made an error :)

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 16:58 #17857 by SeByDocKy
Replied by SeByDocKy on topic New Hubsan Upgraded Version on the way
I am on devo 7E .... AIL DR1 is HOLD or FMOD ? (I tried all of them .. nothing worked)

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 17:00 #17860 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
lol, try another button if there's no AIL DR on your TX :p
In my template replace AIL DR1 with HOLD for example.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 17:07 #17861 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
not HOLD, HOLD1:
[channel7]
template=simple
[mixer]
src=HOLD1
dest=Ch7
curvetype=expo
points=0,0

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 17:18 - 03 Jan 2014 17:19 #17862 by vlad_vy
Replied by vlad_vy on topic New Hubsan Upgraded Version on the way
Probably you need to change two bits, set one to 1 and second to 0 and vice versa.
Last edit: 03 Jan 2014 17:19 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
03 Jan 2014 17:19 - 03 Jan 2014 18:34 #17863 by goebish
Replied by goebish on topic New Hubsan Upgraded Version on the way
I'm fairly sure it will work once SebyDocky have is config file right :)
Last edit: 03 Jan 2014 18:34 by goebish.

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds
Powered by Kunena Forum