flow = "path_tracker"
[[input]]
name = "forward"
type = "number"
[[input]]
name = "cross"
type = "number"
[[input]]
name = "other"
type = "number"
[[input]]
name = "forward_string"
type = "string"
[[input]]
name = "cross_string"
type = "string"
[[input]]
name = "forward_route"
type = "string"
[[input]]
name = "forward_distance"
type = "number"
[[input]]
name = "other_route"
type = "string"
[[input]]
name = "other_distance"
type = "number"
[[output]]
name = "route"
type = "string"
[[output]]
name = "distance"
type = "number"
[[process]]
alias = "cross_distance"
source = "lib://flowstdlib/math/add"
[[connection]]
from = "input/cross"
to = "cross_distance/i1"
[[connection]]
from = "input/other"
to = "cross_distance/i2"
[[process]]
alias = "forward_sum"
source = "lib://flowstdlib/math/add"
[[connection]]
from = "input/forward_distance"
to = "forward_sum/i2"
[[connection]]
from = "input/forward"
to = "forward_sum/i1"
[[process]]
alias = "cross_sum"
source = "lib://flowstdlib/math/add"
[[connection]]
from = "input/other_distance"
to = "cross_sum/i2"
[[connection]]
from = "cross_distance"
to = "cross_sum/i1"
[[process]]
alias = "compare"
source = "lib://flowstdlib/math/compare"
[[connection]]
from = "forward_sum"
to = "compare/left"
[[connection]]
from = "cross_sum"
to = "compare/right"
[[process]]
alias = "select_string"
source = "lib://flowstdlib/control/select"
[[connection]]
from = "input/forward_string"
to = "select_string/i1"
[[connection]]
from = "input/cross_string"
to = "select_string/i2"
[[connection]]
from = "compare/lte"
to = "select_string/control"
[[process]]
alias = "select_route"
source = "lib://flowstdlib/control/select"
[[connection]]
from = "input/forward_route"
to = "select_route/i1"
[[connection]]
from = "input/other_route"
to = "select_route/i2"
[[connection]]
from = "compare/lte"
to = "select_route/control"
[[process]]
alias = "select_total"
source = "lib://flowstdlib/control/select"
[[connection]]
from = "forward_sum"
to = "select_total/i1"
[[connection]]
from = "cross_sum"
to = "select_total/i2"
[[connection]]
from = "compare/lte"
to = "select_total/control"
[[process]]
source = "lib://flowstdlib/data/append"
[[connection]]
from = "select_route/select_i1"
to = "append/s1"
[[connection]]
from = "select_string/select_i1"
to = "append/s2"
[[connection]]
from = "select_total/select_i1"
to = "output/distance"
[[connection]]
from = "append"
to = "output/route"