Quality RV solar panel kits aren't cheap. Prices have become a bit more reasonable in recent years. However, a system can still be quite expensive if you want a good solar energy configuration for recreational vehicles. Supposedly, it will automatically disconnect a 240V load (in this case, the solar panel's inverter output) if a generator is detected to be working, and then it will turn back on when the generator shuts down.
There are commercial solar installers that sell anti-scratch and dent panels. One of the ones I use is called Santan Solar in Gilbert, AZ. Solar energy is also completely silent, unlike a generator, and maintaining your RV's solar panels is easy once everything is set up. It's worth noting that cables with a higher power capacity than required will keep your solar panels operating efficiently.
If you're looking to choose the best solar cable for your solar energy system, consider selecting a PV cable made from premium copper. The total power of your solar panels is the most crucial factor in determining the cable sizes you'll need for your solar system. You might think this is an extremely bad way, but it complies with the electrical code and has been done safely in hundreds of thousands of solar panel installations. I have lived without a connection to the grid for 40 years since the first solar panels appeared, but I have never before owned a 14 kW Kholer propane generator with an automatic transfer switch.
You say that without a generator, solar energy is connected to a switch on the main panel at the opposite end of the busbar. If solar energy is something you're interested in and you don't know where to start, solar power generators are a good option to explore. If you combine solar panels with the Jackery Explorer portable power plant, you can harness the full power of the sun's energy to generate electricity.