Saving configuration¶
The Save action on a configuration page writes the values that page has read and edited. A page can display initial values before the flight controller has answered; those values are not a configuration that is ready to save.
On the pages listed below, Save requires a successful read of every record in the page load. If loading is still running, failed, or returned data the parser rejected, Save reports Not saved and explains that the complete configuration must be read first. It queues neither the page writes nor the host EEPROM commit. Wait for loading to finish, or use Reload to try again. A reload invalidates the previous completion until its own reads succeed.
The check also runs after a save confirmation, immediately before the deferred save executes. A page change cancels that pending save and reports Not saved, asking you to return to the page and save again. Arming continues to prevent FC writes. Both checks of the arming state use the configured warning style: the notice, or the transient banner when the armed warning is disabled. Local radio settings do not need an FC read and keep their existing save behaviour.
Confirming a save¶
Confirm on Save, under System > Settings > General, puts a question in front of every Save. It is on by default and can be switched off. Two things override it, and both ask whatever the preference says.
The first is an arming state that cannot be read: the question is asked anyway, because the alternative is writing to a flight controller that may be armed without anybody having been told the check did not run.
The second is a page whose Save destroys something that cannot be read back afterwards. Such a page supplies the words of the question itself, so that it names what is about to be lost instead of only asking whether to save, and it requires the question rather than leaving it to the preference. Tools > Copy Profiles is the one page that does this today: it asks which profile is about to be overwritten and which one it is copied from, because the destination profile's tune is replaced and nothing anywhere holds what was there before. Answering No writes nothing.
The re-checks described above are unaffected either way: the page, its read state and the arming state are all checked again after the answer and immediately before anything is written.
Leaving a page with unsaved changes¶
A value changed on a page lives only on that page until it is saved; leaving the page discards it. On the pages listed below, Back on a page with a change that is not saved does not leave at once. It asks first, in a box titled Unsaved changes, with three answers:
- Stay closes the box and keeps the page with its changes. Back while the box is up does the same, so pressing Back twice never discards anything. Stay is the button that has the focus when the box opens.
- Save saves the page exactly as the header's Save does -- the same checks, the same notice -- and the page stays open; Back then leaves it without asking. The box counts as the confirmation, so Confirm on Save does not ask a second time. A save that has to be confirmed anyway -- an arming state that cannot be read, Copy Profiles -- still asks.
- Discard leaves the page. Nothing is written; the next visit reads the flight controller again.
The question is put only where the header offers Save, never while the model is armed, and not while a save of the page is still on its way: then Back leaves the page as before. It is not put when the page goes without a Back on it -- the link to the flight controller is lost, or the tool opened from the dashboard closes because full screen was left or the model armed; the changes are discarded then as before. Trims, Swash Geometry and both Servos pages are not on the list: with their override on they send a change to the flight controller while it is being edited, before Save, and leaving them takes such a change back instead (see A change sent live under an override below).
The page decides what counts as a change through hasUnsavedChanges(), an optional hook the
tool asks before it leaves; on the pages below it is the same state that draws their Unsaved
changes line. A page without the hook is left as before.
Pages that ask:
- Flight Tuning: PIDs, Rates and Governor.
- Flight Tuning > Advanced: Autolevel, Filters, Main Rotor, PID Bandwidth, PID Controller, Rescue, Tail Rotor, and all three Rates Advanced pages.
- Setup: Configuration, Radio Config, Accelerometer, Alignment, GPS, Ports, Model and Telemetry.
- Setup > Mixer: Swash and Tail.
- Setup > Power: Battery, Sources, SmartFuel, Alerts and Preferences.
- Setup > Governor: General, Time, Filters and Curves.
- Setup > ESC/Motors: RPM, Telemetry, Throttle, and the ten ESC Configurator pages.
- Setup > Controls: Modes, Adjustments, In-Flight Tuning, Failsafe, Stats, both Beepers pages, and Blackbox Configuration and Logging.
- System > Settings: General and Localization; Audio: Volume and all nine Audio Events pages; Dashboard: Theme and Quick Settings.
Picking another servo with an unsaved change¶
Setup > Servos > PWM Output and BUS Output show one servo at a time, and their Save writes the servo that is selected. So picking another servo in the Servo selector while the one on screen has a change that is not saved puts the same box up first, with a message about the servo rather than the page:
- Stay keeps the servo on screen with its change; the selector goes back to it. Back on the box does the same.
- Save saves the servo on screen as the header's Save does, and the other servo is picked once the flight controller has stored it. If the save is refused or fails, nothing is picked and the change stays on screen, still unsaved.
- Discard drops the change and picks the other servo. The servo goes back to the values the page read from the flight controller (or last saved there). PWM Output sends its centre to the flight controller again where it differs, as Reload does; BUS Output does so where a centre was sent under the servo override since, so the flight controller is back on its own centre too.
The selector is locked while the servo override is on, as before. Back on either page still leaves without asking, for the reason given above.
A change sent live under an override¶
Trims with the swash override on, Swash Geometry in setup mode and Servos > BUS Output with the servo override on send a changed value to the flight controller while it is being edited, so the servos show it at once. That value is a trial: it is in the flight controller's working memory only, and the page keeps it marked as not saved until Save writes it to EEPROM.
Leaving such a page without Save -- Back, the tool closing, or the tool opened from the dashboard closing -- puts the values the page read from the flight controller on this visit (or the values of the last save that reached EEPROM) back on the flight controller, and only then switches the override or setup mode off. Reload does the same before it reads again, and so does Discard on BUS Output's question before another servo is picked. Only what was sent is taken back: a visit that never sent a value live writes nothing when it is left, and on Swash Geometry only the records that differ are written again. PWM Output already puts its servo back on Reload and when it is left with a change that is not saved.
Without the rollback, a trial value stayed in the flight controller's memory: the model flew with it until the next restart, and the next save from any page stored it, because a save writes the whole configuration from that memory.
What the save notice shows¶
While a save sends its settings and stores them on the flight controller, the notice under Saving... reads Applying settings, and its bar fills step by step as the writes go out and the settings are stored. It does not name the individual writes. A save that restarts the flight controller then says what it is waiting for -- Restarting the flight controller..., Waiting for the flight controller..., Reconnecting..., Reading the settings back... -- and the notice ends with the outcome.
A save that restarts the flight controller¶
A save on Configuration, Alignment, GPS, Ports, Radio Config, Setup > Telemetry, and ESC/Motors RPM, Telemetry and Throttle restarts the flight controller after writing; on Swash and Tail it does so when the swash type or the tail mode differs from what the page read; on the four Setup > Governor pages it does so when the governor settings written differ from what the page read, or, on General, the governor feature changes. A Save that was refused or did not finish leaves that comparison as it was, so the next Save restarts the flight controller too; the page compares with the new values only once a save is done. While the settings are being written the page cannot be left. Once the flight controller has confirmed they are stored, the notice can be closed and the page left, and the save finishes on its own. Its outcome is shown the next time that page is opened, in the same box a save reports in when it is watched to the end.
The save is reported as a plain success only when the restart was seen. Before the restart the tool reads whether the flight controller's clock is set -- the connection sets it, and a restart clears it -- and reads it again as soon as the board answers. Settings saved. means the clock was cleared, so the board did restart, and the notice clears itself after two seconds. If the clock is still set, the reboot command most likely did not take effect (it can be lost on the link while the board keeps answering), and settings that take effect at boot, such as a port's function, are then not in effect yet. The same notice comes up where the clock was not set before the restart or could not be read -- a board built without a clock answers so, and the connection may have failed to set it -- because then nothing can show that the board restarted. A GPS that sends the date can also set the clock again before the board's first answer; a restart is then reported as unconfirmed although it happened. In all these cases the notice reads Settings saved, but the flight controller's restart could not be confirmed. Power it off and on before flying. and stays up until it is closed. The settings are stored either way. A board that does not answer again within 20 seconds is reported as The flight controller has not come back yet, as before.
The tool opened from the dashboard closes when full screen is left or the model arms, and it can do so while such a save is still under way. The close does what Back does on that notice: the save is dismissed -- at once if the flight controller has confirmed the settings are stored, otherwise the moment it does -- and finishes without a screen. The dashboard carries it on: it waits for the board to answer, runs the connection steps again for the restarted board, and reads the clock as above. Its outcome is shown the next time that page is opened, a save that failed before the settings were stored included. If the tool is opened again before the flight controller has confirmed the settings, the save's notice is shown again on whatever the tool opens on, and the outcome is reported in that notice instead of being held for the page. Once the settings are confirmed that is no longer so: a tool opened again while the board restarts or is being waited for shows no notice for the save, and its outcome is shown when the page is opened again, as after Back. A save that does not restart the flight controller is not dismissed, as Back does not dismiss it: a success clears itself, and a failure is shown when the tool is opened again, as is a notice that was still standing when the tool closed. Before, the save stopped waiting when the tool closed: the connection steps were not run again after the restart, and the next open of the tool reported a board that had come back long before as The flight controller has not come back yet.
A save that fails after reaching the flight controller¶
A save sends its writes one by one and then asks the flight controller to store them in its EEPROM. The flight controller uses most written values at once; only the EEPROM write keeps them, and after a restart it loads what it has stored. When a save fails before the flight controller has confirmed the EEPROM write, the notice Not saved says which of two cases it is:
- No write can have been taken. The first write was refused by the flight controller, or it was never sent. The notice reads The flight controller did not confirm the settings. and offers Continue.
- A write may have been taken. At least one write was confirmed, or a write was sent and never answered -- a lost answer looks the same as a lost write -- and then a later write or the EEPROM write failed or was not answered. The flight controller may then run some of the new values until it restarts. The notice says so and offers Continue and Restart FC.
Continue keeps the page with its changes, so Save can be tried again. Restart FC restarts the flight controller and writes nothing; the notice shows the same waiting steps as a save that restarts the flight controller. It ends with The flight controller restarted and runs the settings it has stored. when the restart was seen (see above), and otherwise with The flight controller's restart could not be confirmed. Power it off and on before flying. -- also when the board does not answer again within 20 seconds, or when a step of the restart gets no answer for 30 seconds. Either notice stays up until it is closed. An EEPROM write whose answer was lost may still have been stored, so what the flight controller loads after the restart is what it has stored, which can be the new values.
Restart FC is offered only while the connection is up to the flight controller the save wrote to (a different one connected since is not restarted) and the model is neither armed nor of unknown arming state. The button comes and goes with these while the notice stands, and a press is checked again: if the model was armed since, it restarts nothing. Because the flight controller accepts the restart command over telemetry whatever its arming state, the tool then asks the flight controller itself whether it is armed and sends the command only on its answer that it is not, and only within two seconds of asking and while the radio's own check still holds. A restart held back that way ends with could not be confirmed. If the tool opened from the dashboard closes during the restart, the restart finishes on its own and its outcome is shown the next time the tool opens. Pages that save through their own chain rather than through the shared save are not covered, and Flight Tuning > Tune Advisor reports a failed apply in its own notice.
A save step that gets no answer for 30 seconds ends the save. None of its writes, its EEPROM write or its restart is sent after that -- each is checked at the moment it would be sent -- and the requests it still had waiting are dropped, so a late EEPROM write cannot store what the notice reported as not saved. The ended save ignores any answer that still arrives for it instead of moving the save or restart that follows.
When a different flight controller answers¶
Adjustments, Beepers, Blackbox, Failsafe and Stats under Setup > Controls, the four Governor pages, both Servos pages, and ESC/Motors Motor Override, RPM, Telemetry and Throttle keep what they have read while they are open. If the link drops and comes back from a different flight controller -- another board, or one reporting a different MSP API version -- such a page reads again. A link that drops and comes back to the same board does not make it read again, so values edited and not yet saved stay on the page.
When the profile changes under an open page¶
PIDs, Rates and Governor, and the advanced tuning pages except Filters, each show one PID or rate profile, and their Save writes the whole record of that profile. The flight controller has no way to be told which profile a record is for: it stores it in whichever profile is active when the write arrives. So a profile switch from the transmitter -- a profile switch or an adjustment -- while such a page is open matters:
- Nothing edited: the page reads the new profile, and the heading shows its number.
- An edit not yet saved: the page keeps the edit and does not read over it, and its heading keeps the number of the profile the values were read from. Save is refused with Not saved and a notice that the profile changed after the page was read; nothing is written and no EEPROM commit is queued. Switching back to the profile the page was read from makes Save available again. Reload reads the active profile instead and replaces the edit, after the usual question if Confirm on Reload is on. Leaving the page asks about the unsaved change as on any other page.
A page learns of a switch from the pid_profile and rate_profile telemetry sensors, or from the
packed System Config sensor on MSP API 12.10 when those are not selected. Without any of them it
cannot see a switch at all and keeps the profile the connection reported. The suite's MSP response
cache keeps a PID profile's reply only while one of these sensors reports the profile, so such a
model reads the PID profile from the flight controller on every visit instead of being served the
profile of an earlier one.
A save that has already started can be overtaken by a switch, too: a save of several writes sends them one after another, and each lands in the profile active when it arrives. The Tune Advisor's Save therefore asks the flight controller for the active PID and rate profile right before each of its writes, and stops at the first write for which the flight controller, or the radio's profile sensors, report other profiles than the advice's: that write and every later one are not sent and no EEPROM commit is queued. A switch in the moment between that answer and the write is not seen before the write. A checked write whose answer is lost is not sent again unchecked; the save then stops as a failed write. The shared save offers this check before a write to any page.
Tail Rotor saves its PID profile and then its governor profile in two writes, and the governor profile write carries the whole governor profile, not only Tail Torque Assist. Its Save asks the flight controller for the active PID profile the same way right before each write, and stops at the first write for which the flight controller, or the radio's PID profile sensor, reports another PID profile than the one the values were read from. Without that sensor the radio cannot tell which profile was read, so the profile the flight controller reports before the first write is taken, and the second write must find it unchanged. The save notice then reports a failed save; when the first write had already been sent, it says that a restart brings back the stored settings. That holds only while nothing stores the settings first: until the restart, what already reached the flight controller can stay active, and a later save on any page that goes through stores it too. The other pages above check the profile when Save is pressed, as described, and not again between their writes.
Power > Sources writes the battery configuration, whose cell values belong to the battery profiles on MSP API 12.10. Its Save sends every profile's cell values back as they were read, so a battery profile switch while the page is open leaves every profile's values where they were.
Pages covered¶
- Flight Tuning: PIDs, Rates and Governor.
- Flight Tuning > Advanced: Autolevel, Filters, Main Rotor, PID Bandwidth, PID Controller, Rescue, Tail Rotor, and all three Rates Advanced pages.
- Setup: Configuration, Radio Config, Accelerometer, Alignment and Model.
- Setup > Governor: General, Time, Filters and Curves.
- Setup > ESC/Motors: RPM, Throttle and Telemetry.
- Setup > Controls: Modes, Failsafe, Stats, both Beepers pages, and Blackbox Configuration and Logging.
- Setup > Power: Battery, Sources and SmartFuel.
- Setup > Mixer: Swash, Swash Geometry, Tail and Trims.
- Setup > Servos: PWM Output and BUS Output.
A chained load must finish successfully even if an earlier error allowed the page to continue reading other records. Previously read session values alone do not grant permission to save. The page's existing parameter help and save/reboot sequence are otherwise unchanged.
Configuration, Radio Config, Accelerometer and SmartFuel write whole records from what the page holds, and before a read has succeeded that is the page's own starting values rather than the board's. On Configuration that would be every feature switched off -- the serial receiver included -- and an empty craft name, followed by a restart.
Tools > Copy Profiles reads no record of its own; what its Save needs is how many profiles of the selected kind the flight controller has, which the connection reads straight away. Until that count has arrived, Save is held and the lists offer six. Reload asks the flight controller again.
A read that fails¶
On Setup > GPS, Setup > Model, Setup > Controls > Modes, Flight Tuning > Advanced > Autolevel and Setup > ESC/Motors > Motor Override, a read that fails -- no answer after the retries, a reply that cannot be read, or a request taken off the queue -- leaves the page showing Could not read the settings from the flight controller. Use Reload to try again. in place of its fields, so nothing on screen stands for a value the flight controller did not send. The page does not ask again by itself; Reload does.
- A read the suite abandons because the model was armed or the link dropped while it was out counts as failed too; Reload reads again once the model is disarmed and connected.
- GPS says the firmware was built without GPS support only where the flight controller answered the GPS read with an error, which is how such a firmware answers it. Save is refused in both cases, and while the read is still out.
- Motor Override offers no motor until it has read how many motors the flight controller has and what it is driving now. Its Reload ends a running override first, as leaving the page does.
On Tail, the yaw limits and the centre trim are kept as the flight controller stores them, and changing Tail Mode changes only the unit they are shown in -- percent for a motorised tail, degrees for variable pitch. The firmware applies the same stored numbers in every tail mode, so a Save after a Tail Mode change writes them back unchanged unless one of those fields was edited. Yaw Calibration is set to the new mode's starting value on that change -- 100 % for a motorised or bidirectional tail, 25 % for variable pitch -- as in the Rotorflight Configurator; the yaw direction is kept.
The four Mixer pages show the values of their previous visit while they read again, and each writes whole records -- the mixer configuration, and on Swash, Swash Geometry and Tail the mixer inputs -- with the page's own fields laid over them. A save from a visit whose read did not succeed would send an earlier visit's records, including settings another Mixer page has changed since. The live write that Trims sends while the swash override is on, and Swash Geometry while setup mode is on, waits for the same read: until it has succeeded, a changed value is shown and not sent. Switching the override or setup mode on with the * button waits for it too -- the button is disabled until the read has succeeded -- while switching either off is available at any time.
The two Servos pages write one servo's whole record -- the one selected -- from what the page holds, and keep the records of their previous visit while they read again. Save waits for this visit's read and, after another servo has been picked, for that servo's own read; a servo whose record this visit has not read shows no fields. Switching the servo override on with the * button waits for the same read, while switching it off is available at any time. On flight controllers before API 12.09, which read every servo in one reply, a reply shorter than the servo count it announces is refused instead of being read as zeros. When PWM Output puts a servo back -- on Reload, or when the page is left with a change that was not saved -- it sends the value of this visit's read, or of the last save that completed, not the value of the first visit. Reload on PWM Output then reads the flight controller again, as it does on BUS Output.
Swash Geometry, PWM Output and BUS Output send their save through the tool's shared save rather than from the page: Swash Geometry writes the mixer configuration and its three mixer inputs, each Servos page the selected servo's record, every payload built when Save is pressed, then one EEPROM write. While it runs, the page is covered by the save's progress. A save that worked reads Settings saved. and the notice clears itself after two seconds; one that failed reads Not saved and stays up until it is closed. Before, these pages said Saved as soon as the write was queued, also when the flight controller then refused it or did not answer. Back pressed while the save runs steps back to the menu, and the page is released once the notice has gone. When the tool opened from the dashboard closes during the save, the save still finishes with the values Save was pressed with, and its replies no longer reach what the page's close released. Before, Swash Geometry queued each write from the reply to the one before it, through the module handles its close releases: with the page closed after the first write, the mixer configuration was changed on the flight controller, the three mixer inputs were not sent, and nothing was stored. On the Servos pages the EEPROM write's reply ran against the closed page; the MSP queue catches the raise that followed and logs it as a warning. In the EdgeTX simulator without a flight controller these three saves behave as on the other pages that use the shared save.
Modes and Adjustments under Setup > Controls write only the ranges that were changed since the page last read or saved, then one EEPROM write; a Save with nothing changed writes nothing at all. A range the page did not touch stays on the flight controller as it was stored -- on Modes that includes an AUX channel above AUX 13 stored by another tool, which a save used to move to AUX 13. Reload discards every change -- on Adjustments that includes a slot other than the one shown, which is read again when it is next selected. While Modes writes its ranges, the page is covered by the save's progress, as Adjustments is, so a range cannot be changed half-way through a save.
Adjustments and Failsafe send their save through the tool's shared save rather than from the page: one write for each slot or channel that was changed, then one EEPROM write. Failsafe builds every write when Save is pressed. Adjustments copies every changed slot when Save is pressed and builds each slot's write from that copy when its turn comes, one slot at a time, so that a save of many slots in the tool opened from the dashboard does not run into EdgeTX's instruction limit for a single call; the shared save offers this to any page whose steps would otherwise be built all at once. While it runs, the page is covered by the save's progress. A save that worked reads Settings saved. and the notice clears itself after two seconds; one that failed reads Not saved and stays up until it is closed (before, Adjustments put up its own message, and a failed write on Failsafe said nothing). Back pressed while the save runs is not asked about unsaved changes; the page is left once the notice has gone. When the tool opened from the dashboard closes during the save, the save still finishes with the values Save was pressed with. Before, every write after the first was built from the page only when the one before it was answered: with the page closed by then, the first slot or channel was changed on the flight controller, the others were not, and nothing was stored; with the page opened again at once, the remaining writes went out with that visit's values -- on Adjustments a slot's starting values, which switched the slot off -- and were stored. A change made on a visit opened while an earlier save was still running is kept when that save finishes; before, it was marked as saved and the next Save did not write it. After a save that worked, Failsafe reads the flight controller again if it is still open; Adjustments does not, as before. In the EdgeTX simulator without a flight controller these two saves behave as on the other pages that use the shared save.
Modes sends its save as a chain of writes, every write after the first built only when the one before it is answered, then one EEPROM write. While that chain runs, Save and Reload pressed in the header have no effect (a confirmation the preferences ask for first is still shown): a second Save would send every write again with a second EEPROM write, and a Reload would bring the flight controller's stored values back onto the page -- from the page's last read, or from the new read's replies -- before the chain has built its remaining writes from it. Once the save has finished, both work as before.
Blackbox Configuration and Blackbox Logging send their save through the tool's shared save rather than from the page: Configuration writes its logging settings and then its debug settings, Logging its logging settings, each built when Save is pressed, then one EEPROM write. While it runs, the page is covered by the save's progress. A save that worked reads Settings saved. and the notice clears itself after two seconds; one that failed reads Not saved and stays up until it is closed (a failed write said nothing before). Back pressed while the save runs is not asked about unsaved changes; the page is left once the notice has gone. When the tool opened from the dashboard closes during the save, the save still finishes with the values Save was pressed with, and its replies no longer reach what the page's close released. Before, Configuration built its debug settings from the page only when the first write was answered: with the page closed by then they were not sent at all, and with the page opened again they went out as that visit's values. A debug settings write the flight controller refuses now fails the save before the EEPROM write; before, the EEPROM write followed. After a save that worked, the page reads the flight controller again if it is still open; if it was closed, its next visit reads. Both pages also end their read when they are left before it is answered; before, the next read of the chain was still sent after the page had gone, and on Configuration a visit opened again at once could then refuse Save until Reload. In the EdgeTX simulator without a flight controller these two saves behave as on the other pages that use the shared save.
Stats, both Beepers pages and Blackbox Logging send a single write, built when Save is pressed, then one EEPROM write. They ignore Save and Reload while that runs as well, so every page under Setup > Controls that saves to the flight controller does: a second Save there used to send the same write again with a second EEPROM write.
On Stats and both Beepers pages, that write and its EEPROM write are sent by the tool's shared save rather than by the page. While it runs, the page is covered by the save's progress. A save that worked reads Settings saved. and the notice clears itself after two seconds; one that failed reads Not saved and stays up until it is closed (a failed write said nothing before). Back pressed while the save runs is not asked about unsaved changes; the page is left once the notice has gone. When the tool opened from the dashboard closes during the save, the save still finishes, and its replies no longer reach what the page's close released. After a save that worked, the page reads the flight controller again if it is still open; if it was closed, its next visit reads. Before, the page queued the EEPROM write from the write's reply and its read from the EEPROM write's reply, so a page left in between ran that reply against the state its close had released; the MSP queue catches such a raise and logs it as a warning. On Stats the flight count kept for the flight record is now set from the saved value also when the page was closed. In the EdgeTX simulator without a flight controller these three saves behave as on the other pages that use the shared save.
Autolevel, Main Rotor, PID Bandwidth and PID Controller send their save through the tool's shared save: one write, built when Save is pressed, then one EEPROM write. The page is marked clean only once the flight controller has stored the values. A write the flight controller refuses or does not answer is shown as Not saved. Save pressed while their save is still running is ignored. After a save that worked, the page reads the values back from the flight controller if it is still open; if it was closed, its next visit reads.
PIDs and Governor under Flight Tuning send their save through the tool's shared save: each writes its profile settings, built when Save is pressed, then one EEPROM write. The page is marked clean only once the flight controller confirms that the values are stored; a refused write or a lost reply is shown as a failed save and leaves the edits unsaved. A Save pressed while their save is still running is ignored. After a successful save, each page reads the values back if it is still open; if it was closed, its next visit reads.
Rescue and Filters under Flight Tuning > Advanced save through the tool's shared save: Rescue writes the rescue profile, Filters the filter configuration, then one EEPROM commit. The page is marked clean only once the flight controller has stored the values; a refused write or one that gets no reply is reported. Save pressed while their save is still running is ignored. After a successful save, each page reads its values back from the flight controller if it is still open; otherwise its next visit reads them.
Rates and the Table, Dynamics and Cyclic Behaviour pages under Rates (Advanced) send their save through the tool's shared save: each writes the active rate profile, then one EEPROM write. The page is marked clean only once the flight controller has stored the values; a refused write or one that receives no reply is shown as a failed save. A Save pressed while the save is still running is ignored. After a successful save, each page reads the values back if it is still open.
Tail Rotor under Flight Tuning > Advanced sends its save through the tool's shared save: the PID profile write and, when available, the governor profile write, then one EEPROM commit. Each write follows a check of the active PID profile and stops the save when the profile has moved (see When the profile changes under an open page above); a write whose reply is lost is not sent again. The page is marked clean only once the flight controller has stored the values; a refused or unanswered write or commit is shown as a failed save. A Save pressed while its save is still running is ignored. After a successful save, the page reads the values back from the flight controller if it is still open.
Setup > Telemetry sends its save through the tool's shared save: the telemetry configuration write, then one EEPROM write, then a restart, because the flight controller sets up its telemetry sensors and the CRSF telemetry mode only at start-up. The page is marked clean only once the flight controller has stored the values; a write the flight controller refuses or does not answer is shown as a failed save. Save pressed while the save is still running is ignored.
General, Ramp Time, Filters and Bypass Curve under Setup > Governor send their save through the tool's shared save: the governor configuration write (on General also the feature configuration, when the governor feature changes), then one EEPROM write, then a restart when the written governor settings differ from what the page read or, on General, when the governor feature changes, because the flight controller hands both to the running governor only at start-up. A save that changes nothing does not restart. The page is marked clean only once the flight controller has stored the values; a refused or unanswered write is shown as a failed save and leaves the edits unsaved. A Save pressed while the save is still running is ignored, and a save is refused while the model is armed. The outcome of a save whose notice was put away with Back is shown as soon as the save ends while the page is open, also when the page was left and opened again in between. A save that ends after another flight controller was connected does not change what the tool holds of that board's governor settings.
Battery, Sources and SmartFuel under Setup > Power send their save through the tool's shared save. Battery writes the battery profile when it was selected on the page, then the battery configuration, and then, on firmware with SmartFuel and when the page could read it on this visit, the SmartFuel configuration, unchanged: the flight controller applies the minimum and full cell voltage to its own SmartFuel estimate only when that configuration is written. Sources writes the battery configuration and SmartFuel its own configuration. One EEPROM write follows; none of the three restarts the flight controller. The page is marked clean only once the flight controller has stored the values; a refused or unanswered write is shown as Not saved. A Save pressed while their save is still running is ignored. After a successful save, the page reads its values back if it is still open.
ESC Configurator pages¶
Setup > ESC & Motors > ESC Tools opens one page per ESC firmware. These pages do not use the shared Save action above; each writes the ESC's whole parameter block over MSP, not the settings that were changed. Two rules follow from that.
A page reads the block only if it is that ESC's. The flight controller names the ESC family it detected in the first byte of the block, and the AM32, BLHeli_S, Bluejay, Flyrotor, Hobbywing V5, OMP, Scorpion, XDFly, YGE and ZTW pages -- all ten -- refuse a reply from another family rather than decoding it with their own field list. BLHeli_S and Bluejay report the same family, so those two decide on the ESC's main revision instead. A refused read leaves the page on its own initial values; use Reload after selecting the page for the ESC that is actually fitted.
On every ESC Configurator page, Save is refused until the read of the current visit has succeeded, and reports the reason. A block that was never read cannot be written back: every setting the page does not itself show would go to the ESC as zero. The page is kept between visits, so a block read on an earlier one does not authorise a save on a later one: a read that fails -- a different ESC, another ESC Target, an ESC that did not answer -- cannot be saved from what the previous one sent. The settings on screen, the ESC's name and its firmware go back to the page's own initial ones when the page is left as well, so a visit whose read fails does not show the previous ESC's either.
The ESC Tools grid lights AM32, Goosky, BLHeli_S and Bluejay together on BLHELI32, because what lights them is the ESC telemetry protocol, which they share; GOOSKY lights AM32 and Goosky alone. The Goosky tile opens the AM32 page, so all of this holds for it as it does for AM32. Which of the pages fits is still the pilot's choice; on the BLHeli_S and Bluejay pages these checks make a wrong choice visible instead of writing it to the ESC.
A save the page is left during still reaches the ESC: its write is already queued and is sent. The answer then changes nothing on the page that was left. On AM32, BLHeli_S and Bluejay it no longer starts the reset that follows a save on a page that stays open, so the next visit runs the full connection sequence; on FlyRotor, Hobbywing V5, Scorpion and YGE it does not send the read that follows a save. Before, the answer ran against the closed page and stopped with an error in the log, and on AM32, BLHeli_S and Bluejay the next visit ran that post-save reset in place of its connection sequence. The same holds when the page is left while that post-save reset is still out: its answer, or its refusal, no longer sets the connection state of the page that was left.
Scope¶
The shared check protects the Save action from absent page data. It does not change wire encodings, validate every field inside an accepted parser result, or alter the transport policy for writes already queued. ESC encoding and telemetry-catalog issues have separate fixes.
Checked against RFSuite 0.1.7. Related: issue 273.