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