Rover drive on Mars: experiment bench
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?
- 1. Ask
- 2. Hypothesise
- 3. Set up
- 4. Run
- 5. Record
- 6. Change one variable
- 7. Compare
- 8. Interpret
- 9. Limitations & save
If I change …, then … will …, because …
3 · Set up the parameters
Which ready-made route the rover follows from the start cell to the target rock.
Stopping to image a landmark costs 5 minutes and camera power but resets the drift.
Multiplies wheel slip, heading drift and odometry uncertainty (0 = ideal wheels).
Chance that dust hides an in-range landmark at a check (uses the seed).
Let the filter weigh the camera by its uncertainty, or use the fixed trust below.
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
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
| Parameter | Range | Default |
|---|---|---|
| Route (0 long way, 1 sand shortcut, 2 north rim) | 0 to 2 | 0 |
| Camera check every n cells (0 = never) | 0 to 10 | 5 |
| Slip and drift scale | 0 to 2 | 1 |
| Dust dropout chance | 0 to 0.9 | 0.25 |
| Kalman gain (1) or fixed trust (0) | 0 to 1 | 1 |
| Fixed camera trust K | 0 to 1 | 0.5 |
| If a fix fails (0 keep driving, 1 re-image, 2 ask Earth) | 0 to 2 | 1 |
| Earth–Mars distance (million km) | 54.6 to 401 Gm | 360 |
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.