Stormworks: Build and Rescue

Stormworks: Build and Rescue

46 ratings
ZE Kalman Filter for Radars
   
Award
Favorite
Favorited
Unfavorite
Microcontrollers: Calculation, Microcontroller
Tags: v1.10.2
File Size
Posted
Updated
39.356 KB
3 Feb, 2024 @ 2:55pm
13 Feb, 2024 @ 1:24pm
8 Change Notes ( view )

Subscribe to download
ZE Kalman Filter for Radars

Description


A Kalman filter tuned specifically for radars and laser missile sensors.
  • Based on a model with constant target acceleration and acceleration noise, linearized for spherical coordinates. There is a feature to reduce acceleration noise for slow targets, which is not the part of the model and can be disabled.
  • Tracks all 8 targets independently and has the same composite channel numbering as the radar.
  • Has an optional prediction to compensate tick delay, although it is not so accurate for maneuvering targets.
  • You can change the composite output from the target radar angles to relative Cartesian coordinates or to Cartesian velocity.

    Demo example
    Target drone from the screenshots
34 Comments
Uran_Wind  [author] 24 Nov, 2024 @ 6:59pm 
Yes, with the same channel numbering as the radar.
Mysteriousbeaver 24 Nov, 2024 @ 10:36am 
with radar angles, does it also output distance or no?
Uran_Wind  [author] 19 Jul, 2024 @ 8:08am 
The filter outputs only relative coordinates between the radar and the target.
Mysteriousbeaver 18 Jul, 2024 @ 3:19pm 
Can I use the GPS system on a kalman (hooked directly up to radar). Because since there is no tilt sensor or compass won't it give me the wrong co-ordinates
Uran_Wind  [author] 17 Jul, 2024 @ 10:18am 
Altitude is Y, as the game universally defines it.
Mysteriousbeaver 17 Jul, 2024 @ 10:06am 
Thank you, assuming it's still channel 1, 2, 3 for first targets, is Y considered the altitude or is Z?
Uran_Wind  [author] 17 Jul, 2024 @ 10:01am 
There is an option for measuring relative cartesian speed along xyz axes in the controller settings.
Mysteriousbeaver 17 Jul, 2024 @ 9:49am 
thanks, also one more question, how do I get accurate velocity reading for my target? (Delta blocks are bs), if there's a specific mode on the KF for that can you tell me what it is?

Also crazy good job on coding this masterpiece (I am making an active protection system and would rather not have problems with measuring velocity lol)
Uran_Wind  [author] 17 Jul, 2024 @ 9:16am 
It is 3 channels per detected target, 1-3 for the first, 4-6 for the second, and so on.
Mysteriousbeaver 16 Jul, 2024 @ 7:38pm 
for the cartesian co-ordinates, what are the composite channels?