aggregate PowerOnly {
"""
Enable easy toggling of PowerOnly devices. PowerOnly devices configured
as PowerAlways (sampleTime = 0 sec) will override these settings! The
PowerOnly component must be loaded and appropriate config must exist in
vehicle.cfg and Sensor.cfg.
"""
arguments {
SampleAll = false
"""
Turn on all PowerOnly devices configured in vehicle.cfg
"""
SampleLoad1 = false
"""
Turn on the loadControl1 PowerOnly device configured in vehicle.cfg
"""
SampleLoad2 = false
"""
Turn on the loadControl2 PowerOnly device configured in vehicle.cfg
"""
SampleLoad3 = false
"""
Turn on the loadControl3 PowerOnly device configured in vehicle.cfg
"""
EnabledPowerOnly = Sensor:PowerOnly.loadAtStartup
"""
Defaults true when PowerOnly component loaded, false otherwise. Set
to false to disable regardless of Sample* flags.
"""
}
run in parallel
readData strategy="MinError" {
while (
SampleAll
and EnabledPowerOnly
)
Sensor:PowerOnly.samplePowerOnly
}
readData strategy="MinError" {
while (
SampleLoad1
and EnabledPowerOnly
)
Sensor:PowerOnly.sampleLoad1
}
readData strategy="MinError" {
while (
SampleLoad2
and EnabledPowerOnly
)
Sensor:PowerOnly.sampleLoad2
}
readData strategy="MinError" {
while (
SampleLoad3
and EnabledPowerOnly
)
Sensor:PowerOnly.sampleLoad3
}
# Keep the readDatas on the stack until the toplevel mission ends
behavior Guidance:Wait {
run in sequence
set duration = 99999 hour
}
}