Skip to content

Conversation

@TihKay
Copy link

@TihKay TihKay commented Sep 28, 2017

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.

configenergyprofile

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.

flightplanner_with_energy-consumption

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:

  • an automatically function for analyse the values from logfile to determine the sample points
  • a helpful setup for the user, that he can perform a "Benchmark-Flight" for better values in logfiles

I hope I could arouse interest for this feature.

Patrick Schneider and others added 30 commits December 13, 2016 19:20
… 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)
TihKay and others added 6 commits June 21, 2017 16:10
	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
@TihKay
Copy link
Author

TihKay commented Oct 7, 2017

@meee1 We have just spent a few more minutes to reduce the number of
changed lines. That should make the review process a bit easier. The PR
is not small but I'm confident you'll see that the actual changes are
clear and mostly separate from existing logic.
Please let me know if any questions or concerns arise. I'd be happy to
answer or react on them in order to support a quick merge of the PR.
Best!

- added missing inline documantation
- make better naming in configenergyprofile.designer and write missing tooltips
@meee1
Copy link
Collaborator

meee1 commented Nov 13, 2017

do you have a log to show this in action? i would like to review it as you intended it to be used.

@TihKay
Copy link
Author

TihKay commented Nov 14, 2017

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

[0] testprofile_SoloCopter.zip

- insert comments
@ThomDietrich
Copy link

Hello @meee1,
just wanted to leave a friendly ping and wanted to hear what you think about our contribution. The first phase of the underlying project is completed and we are looking into next steps. It would be amazing to see the results merged soon. If you have any outstanding questions, comments or issues, please let us know.

Best! Thomas

@ThomDietrich
Copy link

@meee1 @magicrub yet again a friendly ping. It would be a real shame to see all the work invested in this PR be for nothing. It would be appreciated if you at least engaged in a conversation about your concerns and/or questions.
Best Regards! Thomas

@aercamti
Copy link

aercamti commented Apr 3, 2019

This looks like a helpful feature for flight planning and hope it will be implemented soon.

@magicrub
Copy link
Contributor

magicrub commented Apr 3, 2019

this looks good, its up to @meee1 to merge.

@meee1 meee1 force-pushed the master branch 2 times, most recently from 303616c to d3b17db Compare August 23, 2019 00:49
@meee1 meee1 force-pushed the master branch 3 times, most recently from 0614891 to 7d31d41 Compare June 20, 2021 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants