Пример #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
 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)
 {
 }