>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> calibrate_horizon
>>>
_initial
>>>
wait
>>>
calibrate
>>>
successful
>>>
failed
Option calibrate_horizon
State Machine
This browser can't display the SVG file
svg/option_calibrate_horizon.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State _initial
If that state is active,
The decision tree:
This browser can't display the SVG file
svg/option_calibrate_horizon_state__initial.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** all buttons are pressed */
if
(
(
switch.fore_back_button_pressed
()
)
&&
(
switch.middle_back_button_pressed
()
)
&&
(
switch.hind_back_button_pressed
()
)
)
{
goto
wait
;
}
else
{
stay;
}
State wait
If that state is active,
The decision tree:
This browser can't display the SVG file
svg/option_calibrate_horizon_state_wait.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** */
if
(
state_time
> 800
)
{
goto
calibrate
;
}
else
{
stay;
}
State calibrate
If that state is active,
>
This boolean output symbol is set:
specialvision.field_line_correction
=
true
The decision tree:
This browser can't display the SVG file
svg/option_calibrate_horizon_state_calibrate.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** */
if
(
specialvision.field_line_correction_done
()
)
{
goto
successful
;
}
else
{
/** */
if
(
state_time
> 2000
)
{
goto
failed
;
}
else
{
stay;
}
}
State successful
If that state is active,
>
This enumerated output symbol is set:
head.control_mode
=
head.control_mode.look_down
>
This boolean output symbol is set:
specialvision.field_line_correction
=
false
The decision tree:
This browser can't display the SVG file
svg/option_calibrate_horizon_state_successful.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** */
if
(
state_time
> 800
)
{
goto
_initial
;
}
else
{
stay;
}
State failed
If that state is active,
>
This enumerated output symbol is set:
head.control_mode
=
head.control_mode.search_for_landmarks
>
This boolean output symbol is set:
specialvision.field_line_correction
=
false
The decision tree:
This browser can't display the SVG file
svg/option_calibrate_horizon_state_failed.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** */
if
(
state_time
> 800
)
{
goto
_initial
;
}
else
{
stay;
}