aboutsummaryrefslogtreecommitdiff
path: root/assets/manual/man/man7advtrains/speed.7advtrains.md
blob: 8b3fe1e9284ff1b4376dc8283f8de03c3c8cfc0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
titles:
- speed
section: 7advtrains
manual: 'Advtrains Developer''s Manual'
shortdesc: Advtrains speed limit library
seealso:
- speed_lessp(3advtrains)
- speed_set_restriction(3advtrains)
- signal_aspects(7advtrains)
---

# Description
The speed library allows the manipulation of speed limits, which can be represented with

* A non-negative number, which stands for a regular speed limit in m/s, or
* -1 or `nil`, which lifts the speed restriction

The use of other values (in particular, nan and infinity) may result in undefined behavior.

This library is available as `advtrains.speed`.

# Notes

The meaning of `nil` for the speed limit library differs from its meaning in signal aspect tables, where `nil` keeps the current speed limit.