/reference/types -> /types

This commit is contained in:
Peli de Halleux
2017-03-16 07:57:41 -07:00
parent 69bd0225ad
commit 00e9217e73
116 changed files with 224 additions and 361 deletions

View File

@ -1,7 +1,7 @@
# On Data Packet Received
Run part of a program when the @boardname@ receives a
[number](/reference/types/number) or [string](/reference/types/string) over ``radio``.
[number](/types/number) or [string](/types/string) over ``radio``.
```sig
@ -17,8 +17,8 @@ To add or remove the parts of the packet from the block, try clicking the blue g
### Callback Parameters
* ``packet`` - the [packet](/reference/radio/packet) that was received by the radio. The packet has the following properties:
* `receivedNumber` - The [number](/reference/types/number) that was sent in this packet or `0` if this packet did not contain a number. See [send number](/reference/radio/send-number) and [send value](/reference/radio/send-value)
* `receivedString` - The [string](/reference/types/string) that was sent in this packet or the empty string if this packet did not contain a string. See [send string](/reference/radio/send-string) and [send value](/reference/radio/send-value)
* `receivedNumber` - The [number](/types/number) that was sent in this packet or `0` if this packet did not contain a number. See [send number](/reference/radio/send-number) and [send value](/reference/radio/send-value)
* `receivedString` - The [string](/types/string) that was sent in this packet or the empty string if this packet did not contain a string. See [send string](/reference/radio/send-string) and [send value](/reference/radio/send-value)
* `time` - The system time of the @boardname@ that sent this packet at the time the packet was sent.
* `serial` - The serial number of the @boardname@ that sent this packet or `0` if the @boardname@ did not include its serial number.
* `signal` - How strong the radio signal is from `-128` (weak) to `-42` (strong).

View File

@ -3,7 +3,7 @@
> Note: This API has been deprecated! Use [on data packet received](/reference/radio/on-data-packet-received) instead.
Run part of a program when the @boardname@ receives a
[number](/reference/types/number) or [string](/reference/types/string) over ``radio``.
[number](/types/number) or [string](/types/string) over ``radio``.
```sig

View File

@ -4,8 +4,8 @@ A packet that was received by the radio.
## Properties
* `receivedNumber` - The [number](/reference/types/number) that was sent in this packet or `0` if this packet did not contain a number. See [send number](/reference/radio/send-number) and [send value](/reference/radio/send-value)
* `receivedString` - The [string](/reference/types/string) that was sent in this packet or the empty string if this packet did not contain a string. See [send string](/reference/radio/send-string) and [send value](/reference/radio/send-value)
* `receivedNumber` - The [number](/types/number) that was sent in this packet or `0` if this packet did not contain a number. See [send number](/reference/radio/send-number) and [send value](/reference/radio/send-value)
* `receivedString` - The [string](/types/string) that was sent in this packet or the empty string if this packet did not contain a string. See [send string](/reference/radio/send-string) and [send value](/reference/radio/send-value)
* `time` - The system time of the @boardname@ that sent this packet at the time the packet was sent.
* `serial` - The serial number of the @boardname@ that sent this packet or `0` if the @boardname@ did not include its serial number.
* `signal` - How strong the radio signal is from `255` (weak) to `0` (strong).

View File

@ -10,7 +10,7 @@ radio.receiveNumber();
### Returns
* the first [number](/reference/types/number) that the @boardname@ received. If it did not receive any numbers, this function will return `0`.
* the first [number](/types/number) that the @boardname@ received. If it did not receive any numbers, this function will return `0`.
### Example: Simple number receiver

View File

@ -10,7 +10,7 @@ radio.receiveString()
### Returns
* the first [string](/reference/types/string) that was sent. If no
* the first [string](/types/string) that was sent. If no
string was sent, then this function returns an empty (blank) string.
### Example: Simple receiver

View File

@ -16,7 +16,7 @@ radio.receivedSignalStrength();
### Returns
* a [number](/reference/types/number) between `-128` and `-42` that means
* a [number](/types/number) between `-128` and `-42` that means
how strong the signal is.
### Simulator

View File

@ -1,6 +1,6 @@
# Send Number
Broadcast a [number](/reference/types/number) to other @boardname@s connected via ``radio``.
Broadcast a [number](/types/number) to other @boardname@s connected via ``radio``.
```sig
radio.sendNumber(0);
@ -8,7 +8,7 @@ radio.sendNumber(0);
### Parameters
* ``value`` - a [number](/reference/types/number) to send.
* ``value`` - a [number](/types/number) to send.
### Example: Broadcasting acceleration

View File

@ -9,7 +9,7 @@ radio.sendString("Hello!")
### Parameters
* `msg` is a [string](/reference/types/string) to send by radio.
* `msg` is a [string](/types/string) to send by radio.
### Example: Two-way radio

View File

@ -9,8 +9,8 @@ radio.sendValue("name", 0);
### Parameters
* ``name`` is a [string](/reference/types/string) to send by radio
* ``value`` a [number](/reference/types/number) to send by radio
* ``name`` is a [string](/types/string) to send by radio
* ``value`` a [number](/types/number) to send by radio
### Example: Broadcasting acceleration

View File

@ -16,7 +16,7 @@ radio.setGroup(0);
### Parameters
* ``id`` is a [number](/reference/types/number) from ``0`` to ``255``.
* ``id`` is a [number](/types/number) from ``0`` to ``255``.
### Simulator

View File

@ -20,7 +20,7 @@ can reach as far as 70 meters (about 230 feet).
### Parameters
* ``power`` is a [number](/reference/types/number) between ``0`` and ``7`` that
* ``power`` is a [number](/types/number) between ``0`` and ``7`` that
means how strong the signal is.
### Simulator

View File

@ -8,7 +8,7 @@ radio.setTransmitSerialNumber(true);
### Parameters
* ``transmit`` is a [boolean](/reference/types/boolean) that represents whether the serial number needs to be transmitted.
* ``transmit`` is a [boolean](/types/boolean) that represents whether the serial number needs to be transmitted.
### Example