[READ-ONLY] Mirror of https://github.com/thoda-dev/sb-approach-speed-control. A script to secure your approach from a target and avoid collision.
0

Configure Feed

Select the types of activity you want to include in your feed.

base version

Thomas (Sep 10, 2021, 10:30 PM +0200) d3f56338 2050fa3c

+83
+12
.github/FUNDING.yml
··· 1 + # These are supported funding model platforms 2 + 3 + github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 + patreon: # Replace with a single Patreon username 5 + open_collective: # Replace with a single Open Collective username 6 + ko_fi: jericho1060 7 + tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 + community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 + liberapay: # Replace with a single Liberapay username 10 + issuehunt: # Replace with a single IssueHunt username 11 + otechie: # Replace with a single Otechie username 12 + custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+20
approach.yolol
··· 1 + a=15 b=150 c=1 if:rD>=:rLength thengoto1end goto:Approach+1 2 + if:rD<=a or :Approach<=0 or :rD>=:rLength thengoto5end d=:rD 3 + e=(d-:rD)*5 f=(:rD-a)/5 g=f-e h=(f*(g>0)+e*(g<0))*100/b*(:rD<:rLength) 4 + :FcuForward=h*(e<f) :FcuBackward=c*h*(e>=f) goto2 5 + ife<=0 or :rD>a thengoto7end d=:rD 6 + e=(d-:rD)*5 :FcuForward=0 :FcuBackward=c*e*100/b goto5 7 + :FcuForward=0 :FcuBackward=0 goto1 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + //Approach with speed control by jericho (Discord: jericho#1060)
pictures/Button_Fields.png

This is a binary file and will not be displayed.

pictures/RangeFinder_Fields.png

This is a binary file and will not be displayed.

+51
readme.md
··· 1 + # Approcah Script with speed control 2 + 3 + A script to secure your approach from a target and avoir collision. 4 + 5 + Showcase Video available here : [https://youtu.be/GqaKc3-UVYU](https://youtu.be/GqaKc3-UVYU) 6 + 7 + ## Guilded Server (better than Discord) 8 + 9 + You can join me on Guilded for help or suggestions or requests by following that link : https://guilded.jericho1060.com 10 + 11 + ## Elements Required 12 + 13 + - 1 Range Finder 14 + - 1 Hybrid Button *(or any other type of button)* 15 + - 1 Basic YOLOL Chip 16 + - 1 YOLOL Chip Socket 17 + 18 + ## Button Fields 19 + 20 + You must name your button `Approach`. If you are using a Hybrid Button, be sure to set the `ButtonOnStateValue` to `1` and the `ButtonOffStateValue` to `0`. The `ButtonStyle` must be set to `1` if you don't want to maintain the button. 21 + 22 + ![Button Fields](https://github.com/Jericho1060/sb-approach-speed-control/blob/main/pictures/Button_Fields.png?raw=true) 23 + 24 + ## Range Finder Fields 25 + 26 + You are free to chose the 1st field of the Range Finder, it's only used to switch on or off. If you want th Range Finder to switch on at the same time you press the Approach button, name it `Approach` too. The second field is the max distance of the Range Finder, it must be named `rLength` and you are free to chose the value you want to set it. The last field must be named `rD`, it's the current length of the beam. 27 + 28 + ![Range Finder Fields](https://github.com/Jericho1060/sb-approach-speed-control/blob/main/pictures/RangeFinder_Fields.png?raw=true) 29 + 30 + ## Install the script 31 + 32 + copy the content of the file `approach.yolol` on the basic chip 33 + 34 + ## options 35 + 36 + On the 1st line of the script you can change 3 options: 37 + ``` 38 + a=15 b=150 c=1 if:rD>=:rLength thengoto1end goto:Approach+1 39 + ``` 40 + 41 + - `a` is the distance you want to stop from the target in meters 42 + - `b` is the max speed your ship is capable. more this value is accurate, more the precision of the script will be good 43 + - `c` is a brake factor. If you ship is missing a bit of braking power, you can increase that value, it will multiply the thrust send to your brake. 44 + 45 + ## Usage 46 + 47 + Point the beam on a target (eg: an asteroid) and press the button. The ship will adjust its speed and brake to reach the specified distance from the target. 48 + 49 + ## Support or donation 50 + 51 + if you like it, [<img src="https://github.com/Jericho1060/DU-Industry-HUD/blob/main/ressources/images/ko-fi.png?raw=true" width="150">](https://ko-fi.com/jericho1060)