- Posts: 2631
New Hubsan Upgraded Version on the way
- goebish
- Offline
- I Void Warranties
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
SeByDocKy wrote:
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
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote:
SeByDocKy wrote:
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
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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: Does it work with the template I posted ?
no ...
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
(set packet[9] bit 1)
Investigating ...
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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 ?
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
SeByDocKy wrote: Why you wrote "set packet[9] bit 1" and not 0 ?
bit 0 if you prefer ( packet[9] |= 1<<0; )... LSB
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: no problem, I trust you
In the case, I made an error
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
In my template replace AIL DR1 with HOLD for example.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
[channel7]
template=simple
[mixer]
src=HOLD1
dest=Ch7
curvetype=expo
points=0,0
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- New Hubsan Upgraded Version on the way