-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPIO pins used for custom profiles #151
Comments
@bortek, @RespawnDespair, @user1321 : Can you please look into this? There seems to be something considerbaly wrong here. There is no GPIO 1 or 28: |
Or rather look here which is a file I extracated from latest 1.6RC6. There we have complet elist of config files. According to ti it should Be GPIO 1,7,24,23 input_state0 = GPIO.input(1) https://github.com/bortek/EZ-WifiBroadcast/blob/1.6RC6/root/wifibroadcast_misc/gpio-config.py#L14 Keep in mind these are GPIO pint not physical pins on Pi. Moreover what is this thing for where are the dip switches, is it on flight controller, then which flight conrtoller? I am looking at my Pixhawk1 and that does not have ani dip switches. The docs is pretty unclear about it. |
I'm trying to figure that out myself. Soon this may not even be relevant
though because pre-saved profiles and simultaneous synchronized setting
changes will be handled through an app eliminating the need to edit text
files.
We already have code that serves this purpose but we are quite at that step
in our roadmap yet ))
This gpio (dipswitch) function could still potentially be used as more of a
physical button to "reset stock wfb defaults" in the event air/ground unit
do not have the same settings.
With that part planned in the very near future, do you think that it would
still be worth looking into and documenting?
…On Fri, Oct 19, 2018, 1:22 AM Bortek ***@***.***> wrote:
Or rather look here which is a file I extracated from latest 1.6RC6. There
we have complet elist of config files. According to ti it should Be GPIO
1,7,24,23
input_state0 = GPIO.input(1)
input_state1 = GPIO.input(7)
input_state2 = GPIO.input(24)
input_state3 = GPIO.input(23)
https://github.com/bortek/EZ-WifiBroadcast/blob/1.6RC6/root/wifibroadcast_misc/gpio-config.py#L14
Keep in mind these are GPIO pint not physical pins on Pi.
Moreover what is this thing for where are the dip switches, is it on
flight controller, then which flight conrtoller? I am looking at my
Pixhawk1 and that does not have ani dip switches. The docs is pretty
unclear about it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#151 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcSp0sRUcdKMlWjWVPDzXlZ-Zz8zq88xks5umWGkgaJpZM4W1nWD>
.
|
@bortek : Thanks for diggging into it. Yes you have of course to search for the gpio-config.py in the latest 1.6RC6 Build. I did so as well. However what buffels me
So I wonder: Which pins is Rodizio refering to? This is so confusing and unclear. Appart from that: |
GPIO 1 is reserved for the SD card, this cannot be used. In the original 8 config code i see 7, 23, 24. |
Good... so there is definitely something pretty screwed up here. |
correct GPIO1 cannot be used , reserved for EEPROM clock according to https://www.raspberrypi.org/documentation/usage/gpio/ Then the code is wrong and will need to be corrected as it says Anyway you think anyone is using those dip switches :) ? |
I would never use them... My builds are so tight that I can’t easily access the airpi. |
Personally I don't use them either... (same as for @pilotnbr1) ... however when I remember correctly there was a huge demand back then from people who were experimenting with different FEC settings on the field to find the sweetspot and tuning parameters. We can either ditch that feature alltogether or repair it and strip it it down to only 2 dip switches. - 16 options occupying 4 GPIOs is overkill. just my 2ct. Whatever the case we should correct the documentation as it simply is wrong and confusing. |
@careyer @bortek @RespawnDespair What are your opinions ? |
@Yes21 I left that part out completely when making the image builder. Once i have the basics working again i will reintroduce this, but with two pins as suggested. I'll make a bug on my board for this. |
@RespawnDespair Ok, I will stick this issue with 1.6 project in this repo |
@rodizio1 care to weigh in on this issue? Thinking about making mods to @RespawnDespair builder to address this. |
Yes, there was some mix up with the numbers (I confused numbers as there are three different naming schemes for those pins), search the rcgroups forum thread for more info.
Oh, yeah, careyer as I know him: Mainly pursuing to get "his" functionality into the image (i.e. freeing up those gpios for his intended use) and writing with a staggering confidence about things he doesn't know much about and of course didn't bother to search for or ask before making such bold statements. 4 GPIO pins have been explicitly requested by a user, that's why I put it in. Also I know quite some people are using this functionality (maybe not with 16 different profiles, but surely with more than 4). The reasoning for needing more switches is simple: As soon as you need to change more than one thing, you'll use up those 16 profiles rather quickly. Think of different cam profiles, maybe one for bright daylight, one for evening. Combine that with different frequencies and your combinations are already cut in half (four different wifi channels plus night/day config would already eat up 8 combinations).
Can you explain why you want to break already existing functionality? Currently, the only thing that I can think of that would justifying breaking existing functionality is a new feature with high demand, e.g. audio, for that we might need those pins for an I2S microphone. Of course, as soon as we have a better way of configuring things, we don't need them anymore and can do different things with them. |
Yes, quoting myself from here: https://www.rcgroups.com/forums/showpost.php?p=39256689&postcount=3942
Image in the Wiki is fixed now. |
Thank you for still including the switch-feature. If EZ-WBC is used on other systems than UAV, it will be very helpful to change frequencies on scene during a live broadcast. |
page: https://github.com/bortek/EZ-WifiBroadcast/wiki/How-to's
diagram: https://raw.githubusercontent.com/bortek/EZ-WifiBroadcast/master/wiki-content/Dipswitch.JPG
it names GPIO pins 28,7,24,23
shouldnt this read 1,7,24,23 ?
(wifibroadcast-misc/gpio-config.py)
The text was updated successfully, but these errors were encountered: