Giter Site home page Giter Site logo

mig-21bis's Introduction

MiG-21bis

by: Petar Jedvaj, David Culp, Raptor, Stuart Cassie, Gary Brown, Brendan Black, bugman, and Tomaskom.

Currently maintained by Justin Nicholson, a.k.a. pinto.

Overview

The MiG-21bis is a point-defence fighter aircraft developed by Mikoyan-Gurevich in 1972. It was one of the later variants in a long and extensive family tree, and was used as the basis for several more modern variants.

The MiG-21 is one of the most prolific fighters in the world, with production beginning in 1959 and later variants still being fielded to this day. Originally intended as a high altiude interceptor to defend against high-flying bombers, later variants equipped with more powerful engines fully rounded out this fighter which is still included in modern air forces.

Additional documentation can be found at http://wiki.flightgear.org/Mikoyan-Gurevich_MiG-21 as well as https://github.com/l0k1/MiG-21bis/wiki

For FlightGear

The FlightGear MiG-21bis is currently undergoing substantial work, with a redone 3D cockpit, more weapons systems, accurate guidance and radar, FDM work, and much more. We are focused on quality work - everything should be done with an eye to realism and not taking shortcuts (if we can).

Further down the line, other variants of the MiG-21 are planned. Following the MiG-21bis will be the MiG-21bisD (the modern Croatian Air Force variant), a MiG-21MF, and a MiG-21 LanceR C/III. Contributions towards other variants are welcome - I will not limit the variants to this list, that's just my plan for the time being.

Current State

This plane is a heavy work in progress, so things are constantly in flux. The realism is currently flexible while things are being implemented (such as the radar - there is no warmup period or timelimit yet, and it is too powerful), but as we get closer to a final product realism will be a higher priority.

Guided missiles use the guided-missiles.nas framework, dumb bombs, guns, and rockets use FlightGear's submodel framework.

The radar-logic.nas file is fairly standard but has some custom code in it, so direct replacement is not possible at this time.

Contributing

Check the Github Projects pages for current needs, and feel free to open a pull request.

mig-21bis's People

Contributors

alexeijd avatar axelpaccalin avatar colingeniet avatar jmaverick16 avatar kokos345 avatar l0k1 avatar nikolaivchr avatar rudolf339 avatar swampmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mig-21bis's Issues

Single fire missile only works once

ripple fire works ok

single fire works on the 1st instance (doesn't matter which pylon is selected) but throws up this error after launching the 1st/hitting the target:

Nasal runtime error: non-objects have no members
at MiG-21bis/Nasal/payloads.nas, line 371

no more errors show in the logs, selecting ripple fire doesn't work either

Incorrect path case for `tacview.nas`

In MiG-21-set-common.xml, line 1739

<file>Aircraft/MIG-21bis/Nasal/tacview.nas</file>

should be

<file>Aircraft/MiG-21bis/Nasal/tacview.nas</file>

(incorrect case for the i in MiG).
Causes the file to fail to load, and a bunch of nasal errors in console, on case-sensitive file systems.

Rewrite gyro compass using JSBSim

Currently the gyro compass is written using FG's native property rules, which run at frame rate. Switching from property rules to JSBSim will increase accuracy, especially on computers with low frame rate.

Missing model file 'tgtsphere.xml'

In Nasal/armament-locking.nas, line 200 loads a model which doesn't exist:

objModel.getNode("path",1).setValue("Aircraft/MiG-21bis/Models/tgtsphere.xml"); # this is the model to be loaded.

This generates a constant flow of Error in reading file : file not handled messages in the console.

Add radar view

Add a seperate view that focuses in on the radar screen.

Suggestion from discord chat by Sierra.

Autopilot needs retuning

Every autopilot function could use a nice retuning - they are sloppy after the multitude of FDM changes.

Rewrite dead reckoner in JSBSim

Currently the dead reckoner is written using FG's native property rules, which run at frame rate. Switching from property rules to JSBSim will increase accuracy, especially on computers with low frame rate.

Switch MSL and DAMP modes for pipper movement

Upon further reading of the manual, it appears that the MSL-GYRO will completely disable the GYRO portion of the gunsight, leaving it centered (with respect to the angular setting).

Inbound/Outbound switch behavior is wrong

Currently, the switch only works if set in the "OUTBOUND" position, and searches for another nearby NDB to switch to.

How it should work AFAIK:
If switch is set to outbound, and the channel is odd and not 9, and the gear is down: upon flying over the outer NDB marker with some degree of accuracy, the radio automatically switches to the channel indicated on the ARC dial (2,4,6 or 8) - the roman numeral I is for tuning slow (8 secs), and the II is for tuning fast (4 sec).

If switch is set to inbound, and the gear is down: the ADF is tuned to what is indicated on the knob.

Typo in gunsight algorithm

In the AFALCOS implementation, there is a typo in the definition of W2: line 152 in

        me.W2 = me.W2 + (-me.SL1 * me.SL3 + me.C7 * me.SL3) * me._getP() + 

-me.SL1 * me.SL3 should be -me.SL1 * me.SL2 instead.

Corresponding code from the original paper, just in case:
W2=W2+(-SL1*SL2+C7*SL3)*P+(1.-SL2**2)*Q-(SL2*SL3.C7*SL1 )*R

Kh-66 nasal error

I have the following error when firing a Kh-66:

  269.56 [INFO]:nasal      multi-threading error:
  269.56 [INFO]:nasal      No such member: get_uBody
  269.56 [INFO]:nasal      /home/colin/flightgear/Aircraft/MiG-21bis/Nasal/guided-missiles.nas
  269.56 [INFO]:nasal      3515
  269.56 [INFO]:nasal      /home/colin/flightgear/Aircraft/MiG-21bis/Nasal/guided-missiles.nas
  269.56 [INFO]:nasal      2873
  269.56 [INFO]:nasal      /home/colin/flightgear/Aircraft/MiG-21bis/Nasal/guided-missiles.nas
  269.56 [INFO]:nasal      2106

If I did not mess up, my radar was in beam mode (on radar panel: left switch up, middle switch down, right switch up).
When firing with radar turned off, the error doesn't occur and the missile works correctly, but is of course unguided.

Create higher fidelity cockpit

Should include all instruments, and all switches should be clickable - with implementation happening as systems get added.

So far, hull has been reworked, cockpit layout has been reworked, and work on the front panel and gunsight is ongoing.

Various

  • Drag is too low at sea level - almost supersonic is possible.
  • Yaw is... just... yeah.
  • RWR needs a good talkin' to.

Autopilot needs retuning

Every autopilot function could use a nice retuning - they are sloppy after the multitude of FDM changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.