- Posts: 170
Devo f7 for DelFly
- djtrance
- Offline
I read into your post that you removed a resistor into your video rx, I guess that now you can select all of the channels in the all of the video band into the 5.8ghz band.
In this page: " page with the walkera and other video bands " you can see the bands for other companies.
do you have a picture with the resistor that you removed
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
Yes I removed a resistor to change to the "E" band instead of the default band. So with my transmitter it isn't possible to receive all channels. In theory it should be possible if you remove another transmitter(following the datasheet), but you will need to bit-bang an spi interface. Because now they just use 3 GPIO pins that are either high or low to select the channels. The Video receiver also supports an SPI interface through the same pins(if you remove a resistor somewhere) and then you will be able to change a lot more. This is one of the ideas for the future and would be nice to have and sure is possible
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
Some question I have for PhractedBlue:
- The cleaning of the screen is now done inside gui.c by adding an LCD_Clear(0); at the end of the RemoveAllObjects.. this works partly, but how is it done normally? Do you just overlay a GFX filled vertical over the previous text or something?
- What do you think is the best way to implement this GUI? Because this needs a totally different approach.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
The gui code generally clears the screen when an object is removed. we rarely draw objects on top of others (the dialog is a special case of this).
Oh, and once sbstnp finishes the configurable text size support this may be even easier.
We may need to do a lot of translation in the lcd driver since the entire code is written with pixel coordiante and we need to work with character coordinates instead.
Please Log in or Create an account to join the conversation.
- djtrance
- Offline
- Posts: 170
can the devo F7 return with the earphone jack this audio?
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
Finally after a couple of days of debugging I found the problem why it crashed in almost every menu.. The problem was as following:
Every menu normally has a limit of 4 items per page, but with the devo F7 it is possible to show more lines(about 11). So I programmed the menu that way, but every object array in guiobj.h is based on the 4 lines... So after just replacing all 4's with 11's it worked
But this is not a very good implementation. So PhractedBlue do you got any ideas?
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
So if anyone wants to help: https://bitbucket.org/tudelft-mavlab/deviation/overview
And @PrachtedBlue what would you suggest for these kind of things: https://bitbucket.org/tudelft-mavlab/deviation/commits/ee642797a41843f0851867ac48654bda2119d09d
This really sucks because some of the drawing isn't done in the separate pages folders...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
1) we could define that function with __attribute((weak)) which would allow overriding it but still leave a common function for everyone
2) we could just duplicate it into each screen code
3) But, generally the common functions are meant to be common, and there should not be many cases where the widgets are managed in the common code. Usually, if we have something like that, we do something like what happens in _trim_page.c:
define an enum that represents an object, and use get_obj() to resolve it to the proper per-tx object type.
The last is probably the right answer in this case.
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
I finally got it to bind to a DSM2 receiver and receive 2 channels (Only two because I haven't fixed checked the connections to the stm32 of the sticks and switches). So now I'm going to update all the connections to the stm32 and see if I can fly a Delfly with it.
At least all the transmitter, the haptics, the sound and several other things are connected the same as the devo 7e and are working already
Next to that I think I need to change a bit of the Drawing of different GUI items, because now they add like borders and stuff that isn't drawn on the screen. This also changes the touch region of the object, so currently the touch region overlaps of certain items which makes it impossible to control. Some of you might think we don't have a touchscreen, but the buttons are bit hacked into the deviation code by representing a touch on a certain position.
I think I'm maybe going for option 3 here also, what do you think @PB?
* Btw I didn't push this yet to my repository because this needs some cleanup before I think it is appropriate to push
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
PC12, PC15 -> HOLD TRN
PC14 -> GEAR
PC11, PC10 -> FMODE
PC13 -> DR
PB3, PB4 -> MIX
A4 -> 5,8 GHz receiver on/off switch? (not sure yet)
A0 -> 5,8 GHz receiver channel0 pin
A8 -> 5,8 GHz receiver channel1 pin
A15 -> 5,8 GHz receiver channel2 pin
Next to that there are also some differences in the button matrix, but I haven't got them all yet.
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
I now know for sure that pin PA4 isn't used as on/off switch instead PB9 controls the power to the 5.8GHz board. My second guess is that PA4 is the Signal Strenght input of the 5.8GHz receiver, because the you have manual control in the OSD chip with the internal/external switching.
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
Next tot that I was able to get the external video to work, but as I already said I think my antenna is broken and isn't working properly anymore. Next week I'm going to replace it with a much better antenna en see the result.
Next tot that we need to make a decision where the video setting will belong in the menu. Are they model specific or not? Also do you think it is possible to bit-bang SPI for the 5.8GHz receiver and still have enough RAM(this will make it possible to switch both channels and bands if you remove a resistor on the 5.8GHz video receiver)?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
bit-banging SPI should not take much memory at all. SPI is simple to implement. If you need very high frequency or very high bandwidth it can be harder though
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
I don't think the video chip will require a very high frequency.. It is only at initialization and at channel/band switches. It would be a nice feature to add, because then you can show video of every band.
The only real problem we're currently having with the Devo F7 is that you don't get snowy video but instead the video just goes to blue. This prolly can't be solved easily, because even without the overlay chip in between the screen isn't able to show video when it receives really bad frames.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- Microuav
- Topic Author
- Offline
- Posts: 33
It saves a lot of power turning the video off, like 30 milliamps.. so for sure it is handy to place it somewhere in the menu
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- djtrance
- Offline
- Posts: 170
Please Log in or Create an account to join the conversation.
- djtrance
- Offline
- Posts: 170
Another thing, if I change the memory, will i lost the settings of the planes? (if I use the original firmware)
regards!!
Please Log in or Create an account to join the conversation.
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Devo f7 for DelFly