-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Support Arduino Nano #579
Comments
@neilenns Would you like to add the board definition for the nano? |
I was thinking it should wait until after the 2.0 release? To give time for people to test and make sure the firmware actually works |
Also I ran into trouble when I was doing this locally because my nano has the same vid and PID as the mega |
That's fine. You are right... we can wait with this one until after the release. |
The real way to solve it is to pop a dialogue and ask the user which of the matching boards should be used. That would only need to happen if the board doesn't have the mobile flight firmware already on it because once the firmware is on it the new board system knows what it is for real |
@DocMoebiuz so should we do this or nah? 😂 |
i thought we have everything we need now |
With the changes you added to handle ambiguous boards we could. Requires:
|
And old / new bootloader is considered? |
that's how it is in the arduino IDE iirc. |
@neilenns no board is recognized if 2 json files with the same type but different Baud rate are n the board folder. |
Ahhhh right. Would need to report two different MobiFlight type which is weird because they would be identical otherwise. Hmmmmm. |
Maybe we should move the type to the platformio.ini file so at least the board file can be double used. |
Thinking about this more on the drive home the Nano is a giant pain. Even if we had firmware that reported two different MobiFlight Type values we still wouldn't know what baud rate to use when connecting to the board in the first place. It's a circular loop: to connect to the board we need to know the baud rate, but we don't know the baud rate unless we connect to the board and ask its type. Even after flashing the board in the first place this would be a problem on every launch of MobiFlight on the desktop. Possible solutions would be:
All of these require real coding work beyond just shipping a .board.json and firmware. |
i was going with the assumption that the baudRate adjustment was only required for the bootloader when uploading the sketch. Is it really every time that you would want to connect? |
I am right with my assumption. It is only required for uploading the sketch. So we could very well talk to it during normal MF operations regardless of the variant. Only the avrdude settings are different for one or the other. That is already supported. |
I am using both types since month w/o problems, just the two different json files and 2 different environments in PlatformIO. |
Ah, I thought the baud rate mattered when talking to the board after flash as well. Ok, let me go investigate some stuff on the Mobiflight board.json side of things. |
Opened a PR to support multiple baud rates in a given board.json file. No idea if it works. Someone with the two different Nanos should try it 😀 |
Is your feature request related to a problem? Please describe.
It's basically an Uno. We should support the Nano :)
Describe the solution you'd like
Support the Nano
Describe alternatives you've considered
Don't support the Nano
Additional context
Once #553 is done this is trivial.
The text was updated successfully, but these errors were encountered: