GithubHelp home page GithubHelp logo

okopanja / sharkplanner Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 371 KB

SharkPlanner is a mod for entry of waypoints into ABRIS and PVI-800

License: GNU General Public License v3.0

Lua 100.00%
dcs-world waypoints abris ka-50 pvi-800 blackshark

sharkplanner's People

Contributors

okopanja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sharkplanner's Issues

Add SPACE hotkey to trigger ADD in control window

It would be useful to have hotkey for Add operation (SPACE) in control window.

CTRL+ALT+SPACE: show/hide (already implemented)

In addition in future the follwoing might be considered

  1. Reset: (BACKSPACE)2
  2. Transfer: (ENTER)
  3. SHOW/HIDE Waypoint list (undecided)

The maximal zoom range limits maximal distance between 2 points.

  1. Place a marker on Caucasus.
  2. Place a marker on Syria.
  3. Click Transfer
  4. ABRIS entry will fail

This occurs due to maximal range of ABRIS being limitting factor, since we depend for entry on range being able to contain vertical/horizontal distance between 2 points.
The maximal values between 1 positions are:

  • Horizontal: 810,005 km
  • Vertical: 648,004 km

Explore if the entry can proceed outside of bounds of range maximum reliable.
If not handle this situation gracefully, by refusing ABRIS entry, displaying error message and proceeding with PVI-800 entry

Fix removal of fixpoints/targetpoints

Removal of fixpoints/targets points results in 2 errors:

Case 1:

  • Enter 2 targetpoint
  • Remove targetpoint 1. Instead 1, targetpoint 2 will be removed)

Case 2:

  • Enter 2 targetpoint/fixpoints
  • Remove targetpoint/fixpoint 1, the targetpoint/fixpoint 1 will be removed, and 2 will be renumbered
  • Remove current targetpint/fixpoint 1: no removal is possilbe (appears to have not reindexed properly

Add support for BS2

This should be simple:

  1. derived class
  2. 2 overridden methods (cycle, _determineNumberOfModePresses and abrisWorkaroundInitialSNSDrift

Fix developer documentation

  • README.md: intermidiate => intermediate
    • Preparation work 3: rephrase, create symlink
    • Preparation work 4: rephrase, create symlink
    • Development environment setup 1: add symlink to main README.md
    • Development environment setup 7: add information what to change.
  • init.lua
    • determinVariant => determineVariant

    • used detect => used to determine variant in cases where this is not possible through builtin ID of the module (e.g. Black Shark and Combined Arms). SA-342 Gazelle on the other side politely reports the correct variants.

    • line 7: class vs classes: rephrase

    • line 15: missing modules word

    • line 20: Defines configuration options for module

    • line 25: subsection should be named according to the name of the device. Each used device should have own subsection

    • line 28: particilar => particular
      section

    • line 51: returns module functions

  • MyModuleCommandGenerator.lua
    • line 1: extremly => extremely
    • line 7: that => which
    • line 16: break it
    • line 17: configure direct initialization from config object
    • line 50: break it
    • line 50: remove what
    • line 50: which are used
    • line 82, commant => comment
    • line 100: example sequence for entering waypoints
    • line 122: first step:
    • line 114: is needed
    • line 122: break
    • line 122: gives => returns
    • line 123: my -> by
    • line 150: break
    • line 150: it's a very
    • insert the default command delay as standard suggestion

User can not open Load and Save dialogs

Under certain conditions the user will not be able to load and save diaglos.

This is typically representend with follwoing entry in the dcs.log.

2023-05-08 15:41:53.115 ALERT   LUACOMMON (Main): Error: GUI Error: [string "module('FileDialog', package.seeall)..."]:776: attempt to index field 'userFiles' (a nil value)

It appears that the environment for export script is not fully initialized and is missing the global variables normally available to Mission Editor.

In addition user loose the keyboard input since before dialog gets shown the sharkplanner restricts input.

Display route altitude profile

During planning it is important to understand the altitude profile of the route.
Hence it should be explored if it is feasible to determine and display altitude profile.

Rename project to SharkPlanner

FlightPlanner is name that does not strongly associated with Ka-50, so the project and references need to be renamed to SharkPlanner.

Improve position table

Planned improvements:

  • place Geographical coordinates into single cell in 2 lines, aligned to right.
  • implement distance calculation between waypoints: distance between 2 waypoints, total distance in 2 lines.
  • implement altitude calculation between waypoints: vertical difference and absolute height in 2 lines.

Implement basic experimental mode

Purpose: enable trying out lua functions without reloading the whole environment
Audiance: developers, end users should not use this
Implementation: add button associated with following functionality:

  • dialog shall contain commented out Exp button
  • If button is not commented: allow execution of experimental.lua, which will be dynamically reloaded. The module shall return single function reference which will be invoked to perform experiment

Max waypoints counter gone + error at line 73

There used to be a waypoint counter in the previous release which would allow for adding up to 6 waypoints; it's now gone and there is an empty field where the counter used to be.

On attempting to transfer this error shows
2023-02-19 09:30:45.678 ALERT LUACOMMON (Main): Error: GUI Error: [string "C:\Users\aeroz\Saved Games\DCS.openbeta\Scripts\FlightPlanner\KA50IIICommandGenerator.lua"]:73: bad argument #1 to 'pairs' (table expected, got nil)
GUI debug.traceback: stack traceback:
[C]: ?
[C]: in function 'pairs'
[string "C:\Users\aeroz\Saved Games\DCS.openbeta\Scripts\FlightPlanner\KA50IIICommandGenerator.lua"]:73: in function 'preparePVI800Commands'
[string "C:\Users\aeroz\Saved Games\DCS.openbeta\Scripts\FlightPlanner\KA50IIICommandGenerator.lua"]:63: in function 'generateCommands'
[string "C:\Users\aeroz\Saved Games\DCS.openbeta\Scripts\Hooks\FlightPlanner.lua"]:213: in function 'transfer'
[string "C:\Users\aeroz\Saved Games\DCS.openbeta\Scripts\Hooks\FlightPlanner.lua"]:242: in function 'callback'
[string "./dxgui/bind/Widget.lua"]:299: in function <[string "./dxgui/bind/Widget.lua"]:298>

flightplanner error 190223.log

Address issue of initial state of PVI-800

On hot startup PVI-800 will be in working mode with waypoint 1 selected. On cold startup, it will be in work mode, but with no waypoint being selected.

Presently planner requires waypoint 1 to be selected. It would be nice if the user would not need to take care of this.

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.