You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When legacy is set to 'true' in the config.json, this can cause an error. The Satellite has a property called self.legacy, whose boolean value is dictated by the config.json.
During the Satellite initialization process, a field called self.enable_rf is set to be a digitialIO object if self.legacy is True. However, as shown in screenshot below, a board.RF_ENAB pin in the firmware is attempted to be used.
When the board.RF_ENAB pin is not found, this results in an error that looks like the following:
To quote Michael,
"I was actually just thinking, once the config.json write updates are made, this could be a way for us to autodetect what version of firmware is running and set the legacy variable to True automagically if this issue is detected."
Steps to reproduce
change legacy to equal 'true' in the config.json and run the code
Environment
The text was updated successfully, but these errors were encountered:
Just to add a little bit more context to this, if you are using a legacy configuration of the PROVES Kit (i.e. a V4 Flight Controller Board with a V2 Battery Board like the InspireFly Team) the pinout of the Flight Controller board needs to be completely different than what it is if you are using the latest configuration of the PROVES Kit (V4 Flight Controller Board with a V3 Battery Board).
In the latest configuration the flight controller board does not have access to the voltage regulator that supplies power to the radios, because of that there is no pin on the board that is configured as board.RF_ENAB. In legacy configurations and in the upcoming V5 Flight Controller Board we are planning to return this functionality so the flight controller board is able to directly turn on or off the power to the radio module.
Uh oh!
There was an error while loading. Please reload this page.
Summary
When
legacy
is set to 'true' in the config.json, this can cause an error. The Satellite has a property calledself.legacy
, whose boolean value is dictated by the config.json.During the Satellite initialization process, a field called

self.enable_rf
is set to be a digitialIO object ifself.legacy
is True. However, as shown in screenshot below, aboard.RF_ENAB pin
in the firmware is attempted to be used.When the

board.RF_ENAB
pin is not found, this results in an error that looks like the following:@Mikefly123 filled me in on the error in an earlier PR: #151 (comment)
To quote Michael,
"I was actually just thinking, once the config.json write updates are made, this could be a way for us to autodetect what version of firmware is running and set the legacy variable to True automagically if this issue is detected."
Steps to reproduce
change

legacy
to equal 'true' in the config.json and run the codeEnvironment
The text was updated successfully, but these errors were encountered: