private void OnHeadingUpdated(object sender, pLab_HeadingUpdatedEventArgs e)
 {
     if (headingText != null)
     {
         headingText.text = string.Format("C: {0} / {1} / {2}", (int)e.heading, (int)e.filteredHeading, e.filteredHeadingVelocity.ToString("F1"));
     }
 }
Example #2
0
    private void SendUpdatedHeading()
    {
        if (OnHeadingUpdated != null)
        {
            pLab_HeadingUpdatedEventArgs eventArgs = new pLab_HeadingUpdatedEventArgs()
            {
                heading                 = heading,
                filteredHeading         = filteredHeading,
                timestamp               = lastHeadingTimestamp,
                filteredHeadingVelocity = headingSmoothVelocity
            };

            OnHeadingUpdated(this, eventArgs);
        }
    }