Page 59
atan [Category: Math]
Format:
double
atan(
double
angle);
Returns the arc tangent of the angle.
angle
is specified in radians; the result is in radians.
b_button [Category: Sensors]
Format:
int
b_button();
Reads the value (0 or 1) of the B button.
b_button_clicked [Category: Sensors]
Format:
int
b_button_clicked();
Gets the B button's state (pressed or not pressed). If pressed, blocks until released. Returns 1
for pressed, 0 for not pressed. The construction
while
(b_button()==0) {
while
(b_button()==1); . . .}
//debounce B button
is equivalent to
while
(b_button_clicked()==0) {. . .}
beep [Category: Output]
Format:
void
beep();
Produces a tone. Returns when the tone is finished.
bk [Category: Motors]
Format:
void
bk(
int
m);
Turns motor
m
on full speed in the backward direction.
Example:
bk(1);
block_motor_done [Category: Motors]
Format:
void
block_motor_done(
int
m);
Function does not return until specified motor completes any executing speed or position
control movement.
Example:
mrp(0,500,20000L);
block_motor_done(1);
bmd [Category: Motors]
Format:
void
bmd(
int
m);
This function is the same as
block_motor_done
.
c_button [Category: Sensors]
Format:
int
c_button();
Reads the value (0 or 1) of the C button.
c_button_clicked [Category: Sensors]
Format:
int
c_button_clicked();
Gets the C button's state (pressed or not pressed). If pressed, blocks until released. Returns 1
for pressed, 0 for not pressed. The construction
while
(c_button()==0) {
while
(c_button()==1); . . .}
//debounce C button
is equivalent to
while
(c_button_clicked()==0) {. . .}
console_clear [Category: Output]
Format:
void
console_clear();
Clear the Link print buffer. See also
display_clear
.