-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Companion: save and reload telemetry values #2011
Conversation
…elemetry simulator. Also, default values set for all sensor values.
Could you please find a more suitable name for the PR and a description? Thx |
gagarinlg I was attempting to modify a previous pull request and it looks like I may have entered a new one instead. How can I delete the latest one (added file flush()) and try again? |
To combine multiple commits into one, use the squash option. As this PR needed a better title... for now I changed it to "Companion: save and reload telemetry values" - feel free to edit/modify. You can edit the title directly in GitHub (press Edit button on top of the page). |
Here is the results of rebase: $ git rebase -i "HEAD~3" I don't understand because I have not made any commits to radio. Only to companion. It may be because I have tried to keep my branch up to date by fetching upstream. It states that I am now 10 commits ahead of main. Is there any way of falling back to just my branch without all of the upstream commits? |
First, you have some local changes that you have not committed yet apparently. If these are required, commit them, if not, revert/discard them locally. Second, no worries about your fork's branch "master" https://github.com/dwheeld/edgetx/tree/master being some commit's behind. This means that in the meantime, some changes (new commits) were added to the main EdgeTX that your branch in your fork does not have yet. Unless these changes are not to one of the 3 files and lines you were changing, this won't affect the PR's mergeability. You could rebase on top of present EdgeTX main, but this might just more complicate this at this stage for you, so let's skip it now, if there are no conflicts. Third, you should really edit the first post of this PR to tell more about the contents of the changes you are proposing. |
[let's skip it now, if there are no conflicts.] Yes. Probably better if I leave it as is for now. [Third, you should really edit the first post of this PR to tell more about the contents of the changes you are proposing.] I did not see a way to edit the pr so will try to tell more here. When using Companion Telemetry Simulator, the user can enter values for each sensor. These values can be used to test things like low voltage alarms, etc. At this time, the values must be entered manually each time the telemetry simulator is started. If he leaves the simulator to edit these alarms, and then re-starts the simulator, he must enter the sensor values again after the telemetry simulator re-starts. My addition allows the user to save these values to a file. After re-starting the simulator he simply reloads the previously saved values. Also, most of the telemetry simulator sensors do not have a default value. I have entered these default values for all of the sensors. My final concern is that my branch does not reflect the last change I made (added file.flush before file.close). When I attempt to push the change from my local branch I get errors saying that my local is not up to date. I have updated several times and still get the error. |
You would be better closing this PR and continuing with #1954 as you intended ;) It seems you have created a new branch - I have cherry-picked that commit across to the correct branch, so it now shows up in the #1954 PR as it should... so if you are able to get your local working tree in order we can close this PR and carry on there. Ideally you can As far the rebase, the fact that this branch - |
This PR was entered in error and should be ignored.