コード例 #1
0
 void parse_keys_event(MavLink.Msg_mav_button_event msg)
 {
     //if (visir_state == VisirState_t.YAW_CALIBRATION)
     if (true)
     {
         if ((msg.button_code == 2) && (msg.event_code == 2))
         {
             //menu button pressed
             calculate_yaw_correction();
         }
     }
 }
コード例 #2
0
ファイル: ActivityMap.cs プロジェクト: iliasam/Visir
 void parse_keys_event(MavLink.Msg_mav_button_event msg)
 {
     if (true) //Здесь может быть проверка режима работы устройства
     {
         /*
          * if ((msg.button_code == 2) && (msg.event_code == 2))//event_code == 2
          * {
          * //menu button pressed
          * CalibYaw = get_direction(CalibPosition);
          * CalibrationAngleEvent?.Invoke(CalibYaw);
          * }
          * */
     }
 }
コード例 #3
0
        void parse_keys_event(MavLink.Msg_mav_button_event msg)
        {
            if ((msg.button_code == 2) && (msg.event_code == 2))//event_code == 2
            {
                //get corretion value from the sources
                switch (correction_source)
                {
                case 0:
                    internal_correction_yaw = map1_correction_yaw;
                    break;

                case 1:
                    internal_correction_yaw = map2_correction_yaw;
                    break;

                case 2:
                    internal_correction_yaw = telescope_correction_yaw;
                    break;
                }
                CalibAngleEvent(internal_correction_yaw);
            }
        }
コード例 #4
0
 void parse_keys_event(MavLink.Msg_mav_button_event msg)
 {
 }