1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Automated Defence and Patrol Drone [1.4]

Discussion in 'Programming Released Codes' started by eldarstorm, Dec 18, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. eldarstorm

    eldarstorm Junior Engineer

    Messages:
    725
    Automated Defense and Optional Patrol drone

    Features:
    - Enemy Auto Target after detection
    - Automatically flys to enemy targets to engage them
    - Will return home after turret is destroid
    - Ability to interface with second Remote Control Block for patrol routs
    - Will automatically break patrol to engage enemy
    - Will return to last point in patrol to continue patrol
    - Will return if exceeds max range
    - Will return if runs out of ammo

    The Drone's targeting range is only limited by the range of the sensor. Would suggest using Super Sensor:https://steamcommunity.com/sharedfiles/filedetails/?id=504736273

    How to use:
    - Place code in programing block
    - Creat a timer to make the code loop
    - Name the sensor, SENSOR
    - Set Sensor to "Detect Enemy"
    - Create at least one Remote Control block
    - Add a turret to the drone
    - Make sure turret is set to "Target Neutrals"

    Home/Origin Position
    If not home position has been set it will automatically store a new home position. If you need to reset it type the word "reset" (without quotes) in the Programing Blocks argumets section. This will reset the Home position.

    Alternative way to set Home Position

    Create a GPS position and copy it to clipboard. You can then past this string into the argiments field of the Programming Block. The code will automatically parse the string and use that location for its Home/Origin.

    Indicator light and LCD panel are optional.

    Indicator light will need to be named INDICATOR
    LCD Panel will need to be named LCD Panel

    Patrol System:
    if you want to add a patrol system, create a second Remote Control block and name it PATROL It will automatically use the waypoints in this for the patrol system.

    Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=524850237
    GitHub: https://github.com/eldarstorm/SE_Defence_and_Patrol_Drone

    Chagelog:
    Version 1.4 - Update: Dec 18
    1. Major code rewrite to fix compatibility issues.
    2. Added check for turret inventory
    3. Added distance offset from target

    Version 1.3 - Update: Nov 26, 2015
    1. Fixed Origin/Home bug
    2. Added reset abiltiy through argumetns
    3. Added ability to past GPS Cords in arguments for home location
     
  2. ffwrude

    ffwrude Trainee Engineer

    Messages:
    31
    Hello,

    i am bumping this thread as it doesn't work anymore and i am looking for something like this. Does it exists ?
     
Thread Status:
This last post in this thread was made more than 31 days old.