Skip to content

Commit

Permalink
Merge branch 'master' into add_do_set_home
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 authored Jan 9, 2025
2 parents 0aa00a4 + a4eca31 commit 8bcda77
Show file tree
Hide file tree
Showing 7 changed files with 958 additions and 489 deletions.
2 changes: 1 addition & 1 deletion ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ private void OpenBg(IProgressReporterDialogue PRsender, bool getparams)
var countDown = new Timer {Interval = 1000, AutoReset = false};
countDown.Elapsed += (sender, e) =>
{
int secondsRemaining = (deadline - e.SignalTime).Seconds;
int secondsRemaining = Convert.ToInt32((deadline - e.SignalTime).TotalSeconds);
frmProgressReporter.UpdateProgressAndStatus(-1, string.Format(Strings.Trying, secondsRemaining));
if (secondsRemaining > 0) countDown.Start();
};
Expand Down
5 changes: 4 additions & 1 deletion ExtLibs/Mavlink/Mavlink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public partial class MAVLink
{
public const string MAVLINK_BUILD_DATE = "Wed Dec 18 2024";
public const string MAVLINK_BUILD_DATE = "Thu Jan 09 2025";
public const string MAVLINK_WIRE_PROTOCOL_VERSION = "2.0";
public const int MAVLINK_MAX_PAYLOAD_LEN = 255;

Expand Down Expand Up @@ -2429,6 +2429,9 @@ public enum PLANE_MODE: int /*default*/
///<summary> LOITER2QLAND | </summary>
[Description("LOITER2QLAND")]
LOITER_ALT_QLAND=25,
///<summary> AUTOLAND | </summary>
[Description("AUTOLAND")]
AUTOLAND=26,

};

Expand Down
1 change: 1 addition & 0 deletions ExtLibs/Mavlink/mavlink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ local enumEntryName = {
[23] = "PLANE_MODE_QACRO",
[24] = "PLANE_MODE_THERMAL",
[25] = "PLANE_MODE_LOITER_ALT_QLAND",
[26] = "PLANE_MODE_AUTOLAND",
},
["COPTER_MODE"] = {
[0] = "COPTER_MODE_STABILIZE",
Expand Down
3 changes: 3 additions & 0 deletions ExtLibs/Mavlink/message_definitions/ardupilotmega.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,9 @@
<entry value="25" name="PLANE_MODE_LOITER_ALT_QLAND">
<description>LOITER2QLAND</description>
</entry>
<entry value="26" name="PLANE_MODE_AUTOLAND">
<description>AUTOLAND</description>
</entry>
</enum>
<enum name="COPTER_MODE">
<description>A mapping of copter flight modes for custom_mode field of heartbeat.</description>
Expand Down
Loading

0 comments on commit 8bcda77

Please sign in to comment.