Stormworks: Build and Rescue

Stormworks: Build and Rescue

35 평점
Heading Hold Microcontroller
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Vehicles: Sea
태그: v0.10.27
파일 크기
게시일
업데이트일
41.653 KB
2019년 7월 22일 오전 8시 22분
2020년 6월 21일 오전 8시 50분
변경 사항 6개 ( 보기 )

다운로드 위해 구독하기
Heading Hold Microcontroller

설명
Given a current heading, and a desired heading, output rudder commands to keep vessel pointed towards desired heading.

Currently it is setup to support a "Toggle and Go" setup whereby when a toggle button is enabled, the current heading is set to the desired heading. The microcontroller will then output rudder commands to hold the heading that the vessel was pointing towards when the toggle button was enabled. By using the Heading adjust left/right input nodes, you can bind physical buttons to slightly tweak the desired heading in one direction or the other. It also allows the player to manually manipulate the vessel temporarily to avoid obstacles or adjust approaches. When no further player input is detected, the controller will resume heading hold.

To disable the system, simply toggle the button off. When a new heading is desired, simply re-toggle the button and again, the current heading will be set as the new desired heading hold.

Node Descriptions

System Enabled (Input): Whether or not the system is enabled. This should be bound to the toggle button on your vessel that you will use to enable and disable the heading hold system.

Current Heading (Input): This will come directly from the Compass Sensor on your vessel. This controller handles all the conversions for you, it just accepts the raw input from the sensor.

Heading Adjust Left (Input): Allows you to adjust the desired heading by one degree to the left. Best if bound to a pilot seat hotkey or a Standard (not toggle) button.

Heading Adjust Right (Input): Allows you to adjust the desired heading by one degree to the right. Best if bound to a pilot seat hotkey or a Standard (not toggle) button.

Rudder Player Input (Input): This should come from your control seat. This allows the pilot player to manipulate the vessel manually (to avoid obstacles, adjust approach, etc.) temporarily. Once input is no longer detected, the heading hold system will re-engage automatically.

Rudder Output (Output): This is the output commands that will be sent to your rudder control surface(s). This is what actually turns the vessel to hold the desired heading.

Stored Heading (Output) (Optional): This is an optional output that simply outputs the heading that the controller is attempting to hold. It will be the heading that was the vessel's current heading when the system was toggled on.

Current Heading Output Degrees (Output) (Optional): An optional output that simply outputs the current world heading in degrees. This allows you to not worry about converting the current heading into degrees from the compass' -0.5 to 0.5 scale.
댓글 77
Orange 2024년 7월 30일 오후 7시 35분 
ok ty :D
Mr. Leonard  [작성자] 2024년 7월 30일 오후 5시 46분 
It should yes. Some users have told me they have added it to their helis
Orange 2024년 7월 30일 오후 1시 10분 
does this work for helicopters
Mr. Leonard  [작성자] 2024년 7월 15일 오후 6시 16분 
This one is a bit different from your typical keypad heading set system. Basically you point your vehicle in the direction you want to hold heading, then activate the System Enabled input via a button or other toggle input. The MC then automatically sets your current heading to the held heading. Then you can use the adjust left or right to fine-tune the direction you want to travel. If you would rather input a heading in any direction from a keypad, this may not be the most optimized for your use, however, it would not be difficult to add an additional input to this MC that serves as the "held" heading, while keeping the rest of the logic the same.
SpeedKiller.txt 2024년 6월 16일 오후 4시 25분 
Why dont you have a number input for the heading?
E. 2023년 12월 8일 오후 8시 53분 
Where do i connect everything
doeydobar 2023년 8월 9일 오후 1시 25분 
Great, thanks. Wont be done for another few weeks
Mr. Leonard  [작성자] 2023년 8월 8일 오후 8시 10분 
Yea for sure. Let me know when you upload it. I'd like to check it out.
doeydobar 2023년 8월 8일 오후 4시 49분 
Can I use this in a future workshop submission? You will be credited in big blue letters
Nick Name 2022년 12월 13일 오후 1시 05분 
Oki thanks !