- Posts: 2631
New Hubsan Upgraded Version on the way
- goebish
- Offline
- I Void Warranties
There's no change between normal & expert, this is only a dual rate function.vlad_vy wrote: Can you check if there is any packet code change in case Normal-Expert mode change. For my taste Hubsan is too lazy, seems it has some internal expo. I need to use quite large expo compensation in Tx. I wonder if internal expo can be swithed off.
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.
- sbstnp
- Offline
- Posts: 649
Plus, I don't really crash anymore, so durability is important only marginally for me.
The hubsan could be a worthy piece of hardware for custom firmware, since is runs on a Nuvoton Mini54zan (arm, 32bit). I personally don't have enough time for my projects, life is getting in the way too much and it's frustrating as heck, couldn't even go on a vacation, since I'm on a customer's site 12 hours a day some days. Not fun.
Anyway, nice job!
goebish wrote: I see you ordered a PUMQ 1.1 to replace it.
I got one yesterday, I only flew it twice because I spent all my time hacking the hubsan protocol and modifying Deviation
The PUMQ is a nice hacking platform, but I think it's far less robust than the X4, it looks like its arms may break just by staring at them (they're slimmer on the 1.1)
Would be cool to be able to reflash the x4's firmware to add a angle rate flight mode... Walkera devices are firmware upgradeable, I wonder if any progress has been made on flashing a custom fw to a lady bird for example.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
sbstnp wrote: The hubsan could be a worthy piece of hardware for custom firmware, since is runs on a Nuvoton Mini54zan (arm, 32bit).
This is pretty interesting, unfortunately I'm an AVRetard only and still have to play with ARM based MCUs.
Maybe it's time to get an Arduino DUE or any other cheap ARM dev board in order to have an introduction course
Please Log in or Create an account to join the conversation.
- sbstnp
- Offline
- Posts: 649
goebish wrote:
sbstnp wrote: The hubsan could be a worthy piece of hardware for custom firmware, since is runs on a Nuvoton Mini54zan (arm, 32bit).
This is pretty interesting, unfortunately I'm an AVRetard only and still have to play with ARM based MCUs.
Maybe it's time to get an Arduino DUE or any other cheap ARM dev board in order to have an introduction course
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
I guess code is uploaded with a bootloader, like on the AVRs based Arduinos, what does it take to flash one of those chips without a bootloader on them (aka an equivalent to USBASP or AVR Dragon for AVRs) ?
edit: I guess this is vendor dependent
Please Log in or Create an account to join the conversation.
- sbstnp
- Offline
- Posts: 649
goebish wrote: Thanks for the suggestion, I'll get one (+ I see it's compatible with the arduino IDE, perfect to start!)
I guess code is uploaded with a bootloader, like on the AVRs based Arduinos, what does it take to flash one of those chips without a bootloader on them (aka an equivalent to USBASP or AVR Dragon for AVRs) ?
edit: I guess this is vendor dependent
Yep, vendor dependent. Teensy 3.0 has a second ARM micro CPU, a Nuvoton Mini54tan (LOL nice name) which basically deals with loading the software on the main Freescale MCU. This way you have 100% of the flash for your software and none occupied by the bootloader.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
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.
- sbstnp
- Offline
- Posts: 649
goebish wrote: Oh ! I just remembered I have 2 TI Stellaris Launchpad boards (LM4F120H5QR MCU, ARM Cortex-M4F) that I never used, time to dust them off !
Those are nice too, I just happen to like the really small form factor of the Teensy 3.0 (it's called teensy after all )
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- jason4207
- Offline
- Posts: 59
LED Control - Press down on the left vertical trim rocker (throttle trim down) to turn LEDs off and on.
Anti-Flip Control - Put TH toggle switch to 1 to disable flips when in high rates.
Dual Rates - FMODE0 = 75AIL/75ELE/50RUD | FMODE1 = 100AIL/100ELE/60RUD
Big thanks goes out to goebish for analyzing the signal and cracking the code!!!
Edit: 2nd attachment has the trims zeroed out.
Please Log in or Create an account to join the conversation.
- bruce356
- Offline
- Posts: 10
Downloaded and installed the latest nightly and formatted the 2 meg of memory. Copied across the required files and found I could bind to the X4 using default model1.ini but flight orientation (direction) was wrong.
I found your X4 Model (hfdcf914.ini he3d2d0a.ini)files and loaded he3d* and all worked as expected.
Obviously I am very new to this and was so greatfull that you made your files public as I would not have known where to start.
LED control works great but am not sure how to turn Flip Control on or off. What does this mean "Put TH toggle switch to 1 to disable flips"
Also Dual Rates, I do not know how to initiate either of the two in your post using one of the switches. The default seems to be FMODE1 100%, how do I select FMODE0 75% or set it at 50%.
Sorry for the long post but I feel more info is better than less.
Thanks again
Regards - bruce
Please Log in or Create an account to join the conversation.
- Cesco
- Offline
- Posts: 37
Is the hubsan spyhawk stuff known? Video rec on/off and autolevel on/off ?
Please Log in or Create an account to join the conversation.
- sllewji
- Offline
- Posts: 40
HOLD0 (Left switch up) arms the throttle
HOLD1 (Left switch down) disarms the throttle
FMODE0 (Right switch up) sets AIL & ELE to 70% & RUD to 60% scale
FMODE1 (Right switch down) sets AIL, ELE & RUD to 100% scale
TRIMLV+ (Throttle trim up) toggles Flip Mode (CH6) - will only flip when FMODE1
TRIMLV- (Throttle trim down) toggles LEDs (CH5)
(Note: "Throttle" above assumes the Tx is MODE2 )
TIMER1 is a 5m30s countdown, and TIMER2 is a stopwatch, both setup to start when the throttle goes above -100(ish) and stop at -100 (both also stop when Throttle is disarmed - HOLD1).
The EXT button is a momentary button which will reset the two timers.
If we get switch icons back at some stage, it would be nice to show the LED and FlipMode status, but that's for a future Deviation nightly / release.
Until I get my A7105 installed I can't test this - is anyone else feeling brave?
In theory it should work for both the H107 (V1) and the H107L (V2) - except that there is no LEDs on the H107, of course.
If it works as it's supposed to, I'll repost to the models section.
Ian
Please Log in or Create an account to join the conversation.
- bruce356
- Offline
- Posts: 10
The only item that I am having problems with is that on start up sometimes the 7E will not bind with the x4. I normally plug in x4 first and then turn on the transmitter to bind automatically.
I have also used jason4207 Model files in particular "he3d2d0a_2013-08-08" and after setting "Fixed ID" to "None" with this model file loaded it binds every time absolutely Automatically without fail.
I thank you very much for sharing.
Please Log in or Create an account to join the conversation.
- sllewji
- Offline
- Posts: 40
Most of the kudos should go to Jason4207 (thanks Jason!), I learnt a lot from his model file, and just tweaked it a bit so it did what I wanted.
I think the X4 itself contains the code which makes it only actually flip when the "expert" rates are set at 100%, whatever the FlipMode setting is - which makes a lot of sense.
I therefore didn't see the necessity to mix FMODE1 and TRIMLV- together to ensure that flip mode is only actually enabled when both were active - although it might be interesting to do this as a thought exercise
I'm not sure why you would get binding issues with one model file and not the other - I'll double check the differences between Jason's original and my model file to see whether I've inadvertantly introduced the problem.
Ian
bruce356 wrote: Hi sllewji, you are doing well, I am no where near being able to write a model file. I tested your "hf88d0b9.ini" file on my x4 v2 and it all worked perfectly. Flips only work on 100% setting.
The only item that I am having problems with is that on start up sometimes the 7E will not bind with the x4. I normally plug in x4 first and then turn on the transmitter to bind automatically.
I have also used jason4207 Model files in particular "he3d2d0a_2013-08-08" and after setting "Fixed ID" to "None" with this model file loaded it binds every time absolutely Automatically without fail.
I thank you very much for sharing.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
sllewji wrote: I think the X4 itself contains the code which makes it only actually flip when the "expert" rates are set at 100%, whatever the FlipMode setting is - which makes a lot of sense.
This is true for the x4v1, I think flips are enabled at 90% rates on this one (I don't have one).
For the x4v2 rates need to be 90% or more AND have the flip flag bit enabled.
Please Log in or Create an account to join the conversation.
- sllewji
- Offline
- Posts: 40
I should also have passed on my thanks to you for identifying Hubsan CH5&6 and getting them included in the nightly!
Please Log in or Create an account to join the conversation.
- bruce356
- Offline
- Posts: 10
I noticed that when it will not auto bind, if I switch off the 7E and put right hand switch in down position (expert mode), then turn transmitter back on it auto binds straight away.
The only difference therefore are the rates. Your default rates (switch up) are 70% and 60%. Jason's default rates are 75, 75, 50 and 60.
When your rates are at expert mode 100% it binds every time, this is very curious.
Regards - bruce
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.
- sllewji
- Offline
- Posts: 40
Its a long shot but . . .
In my version of the model file, at initialisation both LEDs and FlipMode are OFF by default, whereas they are ON in Jason's.
I wonder whether this (particularly FlipMode) has a bearing on the behaviour you see regarding whether the X4 will bind - The Hubsan Tx seems to have them both enabled by default when the X4 first binds.
Try turning both FlipMode and LEDs ON - then turning the Tx off.
Set FMODE0 (right switch up), then turn the Tx back on, the Tx should have "remembered" last toggle settings (they are trims after all!), and let us know whether you still have the same bind issues.
Like I said, it's a long shot!
Ian
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- New Hubsan Upgraded Version on the way