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
MSP VTX device #2007
MSP VTX device #2007
Conversation
@pkendall64 fixed. I found one issue with this code, I am getting no PWM output on RF amp (IO12) when trying to change the power from LUA as well as BF. Building with Generic 2400 True Diversity and VTx (option 7). |
PWM output should be now fixed. I tested with two units, one appears to be broken but the other one worked fine. Please check at your end, I will let manufacturers know to test this branch as well. Output measured with the first unit at R1 (5658MHz):
|
Probably with the MSP code. devVTXSPI is looking more like a HAL and could be renamed to be treated as such. FYI Im not suggesting any changes as part of this PR.
I dont have any strong feelings about this. But if you are keen on going down this path may be it would live on OpenVTx and added to ELRS as a dependency?
Oh, I know what you mean. Probably a good idea when a 1W VTx comes along. |
Also changed to use CRSF in a static way
# Conflicts: # src/src/rx_main.cpp
Hey, can you help me identify test cases for wrong PIT behavior with LUA? Prerequisites:
In general LUA will not send PIT in the packet, unless power index is configured in LUA as well. Be sure to set power index to anything other than Test cases I did for LUA:
I'm looking at last three cases, but the rest looks good. |
@JyeSmith I think I fixed it. At first I forgot that there is a 15 seconds debounce period with lua sends when the RX is power cycled, so it's best to test booting in PIT by power cycling both RX and the handset at the same time. It was implemented by @CapnBry to help with infinite eeprom write issues with SPI receivers. Another case with RCE - it will boot in PIT, but if you have PIT set to OFF in the lua it will force it out of PIT almost immediately. There is no good way to solve it as RCE has to be forced out of PIT at some point anyway. So it's best to make sure you have your pit switch in the right position before powering the quad up. RCE will not have the power surge in the beginning compared to other modes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Initial PR to discuss the changes of MSP VTX for ESP32 + SPI VTX devices.
Implementation is based on trusty OpenVTx with some differences.
https://github.com/OpenVTx/OpenVTx/blob/master/src/src/mspVtx.c
Some ideas/questions:
@JyeSmith @pkendall64 please take a look.