-
Notifications
You must be signed in to change notification settings - Fork 2.7k
new feature: Energy-Profile #1652
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
base: master
Are you sure you want to change the base?
Conversation
Updating new Branch
… consumption feature. Energy consumption is shown as mAh (milliampere per hour)
… parameters for the energyconsumption of the multicopter (will be changed soon)
todo: find appopriate function for I(angle) and v(angle)
For now linear approximation from -90 to 0 degree and 0 to 90 degree. 0 degree is the base energy consumption (hovering for example)
ToDo: -Polynom for I should be of grade 2 oder 3 -v could be relatively linear -linechart to see parameters in diagram (system.windows.forms.datavisualization)
function nearly complete
…r velocity in km/h; still the time was handled as seconds)...the distance is also given in meters, not kilometers
Signed-off-by: Thomas Dietrich <[email protected]> # Conflicts: # MissionPlanner.csproj
Forgot to push previous commit. This commit: Rewrite in progress
Note: CultureInfo can be evil (5,3 could be interpreted as 53 and so on)
modified: GCSViews/ConfigurationView/ConfigEnergyProfile.Designer.cs modified: GCSViews/ConfigurationView/ConfigEnergyProfile.cs modified: GCSViews/ConfigurationView/ConfigEnergyProfile.resx - restructured layout in "ConfigEnergyProfile" modified: GCSViews/FlightPlanner.Designer.cs modified: GCSViews/FlightPlanner.cs modified: GCSViews/FlightPlanner.resx - refactored the method "writeEnergyConsumption()" - implement data-bindigs deleted: Utilities/EnergyProfile.cs - delete old file new file: Utilities/EnergyProfileController.cs - new file with logical methods for the "EnergyProfile" - includes Import, Export, Plot, Interpolation, calculate-methods for energy-consumption new file: Utilities/EnergyProfileModel.cs# - static data-model for energyprofile - includes also the "CurrentModel" as class new file: Utilities/IConfigEnergyProfile.cs - implement 2 interfaces for adaptivity code - first interface "IConfigEnergyProfile" is only for the service in configuration View, the second "IEnergyConsumption" is for the service to calculate the energy-consumption in flight-planner
modified: GCSViews/ConfigurationView/ConfigEnergyProfile.Designer.cs GCSViews/ConfigurationView/ConfigEnergyProfile.cs GCSViews/ConfigurationView/ConfigEnergyProfile.resx - changed text and declarations from labels in view GCSViews/FlightPlanner.Designer.cs GCSViews/FlightPlanner.cs - changed text from label in panel (right) Utilities/EnergyProfileController.cs Utilities/EnergyProfileModel.cs - changed init-model - change Math.Round to 1
modified: GCSViews/ConfigurationView/ConfigEnergyProfile.Designer.cs modified: GCSViews/ConfigurationView/ConfigEnergyProfile.cs modified: GCSViews/ConfigurationView/ConfigEnergyProfile.resx - implement new config iput for velocity - implement new graph for velocity modified: GCSViews/FlightPlanner.Designer.cs modified: GCSViews/FlightPlanner.cs modified: GCSViews/FlightPlanner.resx - implement average flight time in WP-table - implement required flight time over all in panel at the right - change desight for the panel of the right - little changes in writeenergyconsumption() modified: Utilities/EnergyProfileController.cs - fixing "import energyprofile" - implement functionality to requirements (current or velocity) for plot an calculation - implement test-methods for calc-methods modified: Utilities/EnergyProfileModel.cs - implement new velocity model modified: Utilities/IConfigEnergyProfile.cs - interface was matched to requirements
- fixed Merge-Conflicts
6ea3fea to
97a48ba
Compare
|
@meee1 We have just spent a few more minutes to reduce the number of |
…nd create an energy-profile
- added missing inline documantation - make better naming in configenergyprofile.designer and write missing tooltips
|
do you have a log to show this in action? i would like to review it as you intended it to be used. |
|
Hi, I'm glad that you want to review my feature. In the zip file [0] below, there is a test profile, which you can simulate the energy consumption when creating a flight plan. You can easily import this test profile, then all the necessary data should be entered in the tables. My work on the automatic analysis of logfiles from so-called "Benschmark flights", to create such individual energy-profiles, is progressing well. I guess, I could implement a first version in a few weeks. ciao |
velocity - add messages for user, if some values are incorrect
- fix bug in ConfigEnergyProfile
- insert comments
|
Hello @meee1, Best! Thomas |
|
This looks like a helpful feature for flight planning and hope it will be implemented soon. |
|
this looks good, its up to @meee1 to merge. |
303616c to
d3b17db
Compare
0614891 to
7d31d41
Compare
Hi,
I would offer you a new useful feature for the "MissionPlanner".
This feature involves that the user can create his own energy-profile of his multicopter.
For now it exist two individual input-tables for some current-tilt-angle-values and some velocity-tilt-angle-values. From this sample points will be interpolate all the others required values.
The config menu of the energy-profile has got an export and import function and its deactivated on start.
If the energy-profile is active, the user can read the probable average energy consumption and probable average flight time between two waypoints or the entire route in the "FlightPlanner-View". For the time being, only the command "WAYPOINT" and "LOITER_TIME" are supported.
Soon:
I hope I could arouse interest for this feature.