Skip to content
Tactiverge

Rover drive on Mars: experiment bench

Simulation OS · playgroundEducational model, not a digital twin

Rover drive on Mars

Drive a small rover across sand and firm ground with a solar battery, camera fixes and a radio link to Earth that takes minutes: where does it end up, and how much energy is left?

Your level (shows more controls and deeper equations)
  1. 1. Ask
  2. 2. Hypothesise
  3. 3. Set up
  4. 4. Run
  5. 5. Record
  6. 6. Change one variable
  7. 7. Compare
  8. 8. Interpret
  9. 9. Limitations & save

If I change …, then … will …, because …

3 · Set up the parameters

0–2

Which ready-made route the rover follows from the start cell to the target rock.

0–10

Stopping to image a landmark costs 5 minutes and camera power but resets the drift.

0–2

Multiplies wheel slip, heading drift and odometry uncertainty (0 = ideal wheels).

0–0.9

Chance that dust hides an in-range landmark at a check (uses the seed).

0–1

Let the filter weigh the camera by its uncertainty, or use the fixed trust below.

0–1

Blend weight on the camera fix when the Kalman gain is off.

2 more controls appear at higher levels; until then they stay at the default value.

The seed fixes any random noise. Same parameters + same seed = exactly the same result, every time, on every computer.

6 · Change one variable

Your first run is the baseline. After it, change one thing at a time.

7 · Compare on a graph

Run the model to draw your first curve here.

5 · Run log

No runs yet.

Equations

Odometry uncertainty grows with distance: σ = κ·d (κ = 0.05 firm, 0.25 sand), so P = P_fix + (Σ κ·L)².

Camera fix with gain K: x̂ ← x̂ + K·(z − x̂); afterwards P = (1 − K)²·P + K²·R. The Kalman gain K = P / (P + R) minimises that variance, giving P = (1 − K)·P.

Assumptions (always true in this model)

  • Illustrative constants in a believable range for a small rover, not copied from any real mission.
  • Flat 4 m grid: firm ground, soft sand and impassable rock; no slopes.
  • The rover drives straight legs at constant speed between cell centres.
  • Drive starts at 10:00 local solar time with 320 Wh in a 500 Wh battery.
  • Landmarks are point features within 20 m; dust hides one at random with the chosen probability.
Text description of what the chart shows

A line chart against drive time in minutes. The position error between where the rover is and where it thinks it is grows while it drives, faster in sand, and drops after each successful camera fix. The believed uncertainty follows the same saw-tooth shape. The battery line falls while driving and rises slowly with the Sun.

Did the result support your hypothesis? Use the numbers from the comparison table and link them to an equation.

Which assumptions could change your answer in the real world? For example: Real rovers use visual odometry, stereo hazard maps and thermal models; none of that is here.

Export and save

Exports use the ticked runs (or every run if none are ticked). Your draft saves automatically in this browser only. The Journal is private to you.

Valid parameter ranges

ParameterRangeDefault
Route (0 long way, 1 sand shortcut, 2 north rim)0 to 20
Camera check every n cells (0 = never)0 to 105
Slip and drift scale0 to 21
Dust dropout chance0 to 0.90.25
Kalman gain (1) or fixed trust (0)0 to 11
Fixed camera trust K0 to 10.5
If a fix fails (0 keep driving, 1 re-image, 2 ask Earth)0 to 21
Earth–Mars distance (million km)54.6 to 401 Gm360

Independent reference checks

  • Ideal wheels, long way round, no checks

    Hand calculation: 21 firm cells × 4 m = 84 m at 0.04 m/s = 2100 s; load 125 W × 2100 s = 72.917 Wh; solar ∫ 45·sin(π(h−6)/12) dh from 10:00 to 10:35 = (540/π)(cos(π/3) − cos(π·4.5833/12)) = 23.645 Wh; battery 320 + 23.645 − 72.917.

  • Ideal wheels, sand shortcut, no checks

    Hand count on the map: 13 legs, 6 touching sand (250 s at 205 W) and 7 firm (100 s at 125 W): 2200 s = 36.667 min, (7 × 100 × 125 + 6 × 250 × 205)/3600 = 109.722 Wh.

  • Radio delay at closest approach

    t = d/c = 54.6 × 10⁹ m / 299 792 458 m/s = 182.13 s = 3.035 min.

Checked automatically on every change to the code. Educational model, not engineering-grade.

Where this model stops being right

  • Real rovers use visual odometry, stereo hazard maps and thermal models; none of that is here.
  • Error is two-dimensional position only; wheel wear, tilt and terrain changes are ignored.