mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
APM Planner - gps lat long bug fix.
This commit is contained in:
parent
3bb3cbe5b6
commit
06a1035953
@ -683,8 +683,8 @@ namespace ArdupilotMega
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
byte[] bytes = mavinterface.packets[MAVLink.MAVLINK_MSG_ID_GLOBAL_POSITION_INT];
|
bytearray = mavinterface.packets[MAVLink.MAVLINK_MSG_ID_GLOBAL_POSITION_INT];
|
||||||
if (bytes != null)
|
if (bytearray != null)
|
||||||
{
|
{
|
||||||
var loc = bytearray.ByteArrayToStructure<MAVLink.__mavlink_global_position_int_t>(6);
|
var loc = bytearray.ByteArrayToStructure<MAVLink.__mavlink_global_position_int_t>(6);
|
||||||
|
|
||||||
|
@ -535,7 +535,11 @@ namespace ArdupilotMega.GCSViews
|
|||||||
{
|
{
|
||||||
this.BeginInvoke((System.Windows.Forms.MethodInvoker)delegate()
|
this.BeginInvoke((System.Windows.Forms.MethodInvoker)delegate()
|
||||||
{
|
{
|
||||||
MainV2.cs.UpdateCurrentSettings(bindingSource1);
|
try
|
||||||
|
{
|
||||||
|
MainV2.cs.UpdateCurrentSettings(bindingSource1);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,8 +145,11 @@ namespace ArdupilotMega
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//Console.WriteLine(DateTime.Now.Millisecond + " timer2 serial");
|
//Console.WriteLine(DateTime.Now.Millisecond + " timer2 serial");
|
||||||
|
try
|
||||||
MainV2.cs.UpdateCurrentSettings(currentStateBindingSource);
|
{
|
||||||
|
MainV2.cs.UpdateCurrentSettings(currentStateBindingSource);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
if (sw != null && sw.BaseStream.CanWrite)
|
if (sw != null && sw.BaseStream.CanWrite)
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,11 @@ namespace ArdupilotMega.Setup
|
|||||||
|
|
||||||
void timer_Tick(object sender, EventArgs e)
|
void timer_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MainV2.cs.UpdateCurrentSettings(currentStateBindingSource);
|
try
|
||||||
|
{
|
||||||
|
MainV2.cs.UpdateCurrentSettings(currentStateBindingSource);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
float pwm = 0;
|
float pwm = 0;
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user