Incoming events for native functions: V_leds_*
, A_sound_*
, M_motor_*
.
More...
|
| V_leds_bottom (integer red, integer green, integer blue, integer side) |
| V_leds_bottom %m.zeroone %n %n %n. More...
|
|
| V_leds_buttons (integer forward, integer right, integer backward, integer left) |
| V_leds_buttons %n %n %n %n. More...
|
|
| V_leds_circle (integer t0000, integer t0130, integer t0300, integer t0430, integer t0600, integer t0730, integer t0900, integer t1030) |
| V_leds_circle %n %n %n %n %n %n %n %n. More...
|
|
| V_leds_prox_h (integer fl, integer flm, integer flc, integer frc, integer frm, integer fr, integer br, integer bl) |
| V_leds_prox_h %n %n %n %n %n %n %n %n. More...
|
|
| V_leds_prox_v (integer left, integer right) |
| V_leds_prox_v %n %n. More...
|
|
| V_leds_rc (integer value) |
| V_leds_rc %n. More...
|
|
| V_leds_sound (integer value) |
| V_leds_sound %n. More...
|
|
| V_leds_temperature (integer hot, integer cold) |
| V_leds_temperature hot %n cold %n. More...
|
|
| V_leds_top (integer red, integer green, integer blue) |
| V_leds_top %n %n %n. More...
|
|
| A_sound_system (integer sound) |
| A_sound_system %n. More...
|
|
| A_sound_freq (integer freq, integer duration) |
| A_sound_freq %n Hz %n/60ths. More...
|
|
| A_sound_play (integer slot) |
| A_sound_play %n. More...
|
|
| A_sound_record (integer slot) |
| A_sound_record %n. More...
|
|
| A_sound_replay (integer slot) |
| A_sound_replay %n. More...
|
|
| M_motor_left (integer speed) |
| M_motor_left %n. More...
|
|
| M_motor_right (integer speed) |
| M_motor_right %n. More...
|
|
Incoming events for native functions: V_leds_*
, A_sound_*
, M_motor_*
.
The REST API exposes selected Aseba native functions by adding events for each of them. Note that the brief description line for each will be used as the Scratch block definition.
A_sound_freq |
( |
integer |
freq, |
|
|
integer |
duration |
|
) |
| |
|
inlineprivate |
A_sound_freq %n Hz %n/60ths.
Play a note (Hz) for a time (60ths)
- Parameters
-
freq | freg in Hz |
duration | in 60ths |
A_sound_play |
( |
integer |
slot | ) |
|
|
inlineprivate |
A_sound_play %n.
Play a sound from the SD
- Parameters
-
A_sound_record |
( |
integer |
slot | ) |
|
|
inlineprivate |
A_sound_record %n.
Start or stop recording
- Parameters
-
slot | recorded sound number |
A_sound_replay |
( |
integer |
slot | ) |
|
|
inlineprivate |
A_sound_replay %n.
Play a recorded sound
- Parameters
-
slot | recorded sound number |
A_sound_system |
( |
integer |
sound | ) |
|
|
inlineprivate |
A_sound_system %n.
Play a system sound
- Parameters
-
M_motor_left |
( |
integer |
speed | ) |
|
|
inlineprivate |
M_motor_left %n.
Run the left motor
- Parameters
-
M_motor_right |
( |
integer |
speed | ) |
|
|
inlineprivate |
M_motor_right %n.
Run the right motor
- Parameters
-
V_leds_bottom |
( |
integer |
red, |
|
|
integer |
green, |
|
|
integer |
blue, |
|
|
integer |
side |
|
) |
| |
|
inlineprivate |
V_leds_bottom %m.zeroone %n %n %n.
Light the bottom LEDs
- Parameters
-
red | red LED value 0..31 |
green | green LED value 0..31 |
blue | blue LED value 0..31 |
side | left (0) or right (1) |
V_leds_buttons |
( |
integer |
forward, |
|
|
integer |
right, |
|
|
integer |
backward, |
|
|
integer |
left |
|
) |
| |
|
inlineprivate |
V_leds_buttons %n %n %n %n.
Light the button LEDs
- Parameters
-
forward | forward LED value 0..31 |
right | right LED value 0..31 |
backward | backward LED value 0..31 |
left | left LED value 0..31 |
V_leds_circle |
( |
integer |
t0000, |
|
|
integer |
t0130, |
|
|
integer |
t0300, |
|
|
integer |
t0430, |
|
|
integer |
t0600, |
|
|
integer |
t0730, |
|
|
integer |
t0900, |
|
|
integer |
t1030 |
|
) |
| |
|
inlineprivate |
V_leds_circle %n %n %n %n %n %n %n %n.
Light the circle LEDs
- Parameters
-
t0000 | 0000 LED value 0..31 |
t0130 | 0130 LED value 0..31 |
t0300 | 0300 LED value 0..31 |
t0430 | 0430 LED value 0..31 |
t0600 | 0600 LED value 0..31 |
t0730 | 0730 LED value 0..31 |
t0900 | 0900 LED value 0..31 |
t1030 | 1030 LED value 0..31 |
V_leds_prox_h |
( |
integer |
fl, |
|
|
integer |
flm, |
|
|
integer |
flc, |
|
|
integer |
frc, |
|
|
integer |
frm, |
|
|
integer |
fr, |
|
|
integer |
br, |
|
|
integer |
bl |
|
) |
| |
|
inlineprivate |
V_leds_prox_h %n %n %n %n %n %n %n %n.
Light the proximity sensor LEDs
- Parameters
-
fl | front left 0..31 |
flm | front left middle 0..31 |
flc | front left center 0..31 |
frc | front right center 0..31 |
frm | front right middle 0..31 |
fr | front right 0..31 |
br | back right 0..31 |
bl | back left 0..31 |
V_leds_prox_v |
( |
integer |
left, |
|
|
integer |
right |
|
) |
| |
|
inlineprivate |
V_leds_prox_v %n %n.
Light the ground sensor LEDs
- Parameters
-
left | left ground sensor LED value 0..31 |
right | right ground sensor LED value 0..31 |
V_leds_rc |
( |
integer |
value | ) |
|
|
inlineprivate |
V_leds_rc %n.
Light the RC sensor LED
- Parameters
-
V_leds_sound |
( |
integer |
value | ) |
|
|
inlineprivate |
V_leds_sound %n.
Light the sound sensor LED
- Parameters
-
value | sound LED value 0..31 |
V_leds_temperature |
( |
integer |
hot, |
|
|
integer |
cold |
|
) |
| |
|
inlineprivate |
V_leds_temperature hot %n cold %n.
Light the temperature sensor LEDs
- Parameters
-
hot | red LED value 0..31 |
cold | blue LED value 0..31 |
V_leds_top |
( |
integer |
red, |
|
|
integer |
green, |
|
|
integer |
blue |
|
) |
| |
|
inlineprivate |
V_leds_top %n %n %n.
Light the top LEDs
- Parameters
-
red | red value 0..31 |
green | green value 0..31 |
blue | blue value 0..31 |