-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1656: improve camera configuration, add and allow multiple det…
…ectors
- Loading branch information
Showing
85 changed files
with
2,289 additions
and
1,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 4 additions & 56 deletions
60
...rc/test/resources/crossCompilerTests/_expected/robotSpecific/astGenerated/txt4/camera.ast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,4 @@ | ||
SerialWriteAction[value: StringConst[value: Camera Tests]] | ||
SerialWriteAction[value: StringConst[value: Press right display button to switch to next Detector]] | ||
SerialWriteAction[value: StringConst[value: Config Settings are 30, Orange, 2]] | ||
SerialWriteAction[value: StringConst[value: Camera Color]] | ||
|
||
(repeat [FOREVER, BoolConst[value: true]] | ||
AktionStmt [SerialWriteAction[value: SensorExpr [ColorSensor [C, COLOUR, - EMPTY_SLOT -]]]]WaitTimeStmt[time: NumConst[value: 200]] | ||
if SensorExpr [TouchKeySensor [RIGHT, PRESSED, - EMPTY_SLOT -]] | ||
,thenStmtFlowCon[flow: BREAK] | ||
|
||
) | ||
SerialWriteAction[value: StringConst[value: Camera Color compared to red]] | ||
WaitTimeStmt[time: NumConst[value: 300]] | ||
|
||
(repeat [FOREVER, BoolConst[value: true]] | ||
AktionStmt [SerialWriteAction[value: ActionExpr [ColourCompare[op: EQ, colour1: SensorExpr [ColorSensor [C, COLOUR, - EMPTY_SLOT -]], colour2: ColorConst[hexValue: #ff0000], tolerance: NumConst[value: 50]]]]]WaitTimeStmt[time: NumConst[value: 200]] | ||
if SensorExpr [TouchKeySensor [RIGHT, PRESSED, - EMPTY_SLOT -]] | ||
,thenStmtFlowCon[flow: BREAK] | ||
|
||
) | ||
SerialWriteAction[value: StringConst[value: Line Information]] | ||
WaitTimeStmt[time: NumConst[value: 300]] | ||
|
||
(repeat [FOREVER, BoolConst[value: true]] | ||
AktionStmt [SerialWriteAction[value: FunctionExpr [TextJoinFunct [StringConst[value: Number of lines: ], SensorExpr [CameraLineSensor [C, NUMBERLINES, - EMPTY_SLOT -]]]]]] | ||
AktionStmt [SerialWriteAction[value: FunctionExpr [TextJoinFunct [StringConst[value: Color of first line: ], SensorExpr [CameraLineColourSensor[mode: COLOUR, port: - EMPTY_PORT -, lineId: NumConst[value: 0]]]]]]] | ||
AktionStmt [SerialWriteAction[value: StringConst[value: Position and Width of line 0]]] | ||
(repeat [FOR_EACH, Binary [IN, VarDeclaration [NUMBER, item, EmptyExpr [defVal=NUMBER], false, false], SensorExpr [CameraLineInformationSensor[mode: INFORMATION, port: - EMPTY_PORT -, lineId: NumConst[value: 0]]]]] | ||
AktionStmt [SerialWriteAction[value: Var [item]]] | ||
)WaitTimeStmt[time: NumConst[value: 200]] | ||
if SensorExpr [TouchKeySensor [RIGHT, PRESSED, - EMPTY_SLOT -]] | ||
,thenStmtFlowCon[flow: BREAK] | ||
|
||
) | ||
SerialWriteAction[value: StringConst[value: Ball Information]] | ||
WaitTimeStmt[time: NumConst[value: 300]] | ||
|
||
(repeat [FOREVER, BoolConst[value: true]] | ||
AktionStmt [SerialWriteAction[value: FunctionExpr [TextJoinFunct [StringConst[value: X: ], FunctionExpr [ListGetIndex [GET, FROM_START, [SensorExpr [CameraBallSensor [C, BALL, - EMPTY_SLOT -]], NumConst[value: 0]]]]]]]] | ||
AktionStmt [SerialWriteAction[value: FunctionExpr [TextJoinFunct [StringConst[value: Y: ], FunctionExpr [ListGetIndex [GET, FROM_START, [SensorExpr [CameraBallSensor [C, BALL, - EMPTY_SLOT -]], NumConst[value: 1]]]]]]]] | ||
AktionStmt [SerialWriteAction[value: FunctionExpr [TextJoinFunct [StringConst[value: Diameter: ], FunctionExpr [ListGetIndex [GET, FROM_START, [SensorExpr [CameraBallSensor [C, BALL, - EMPTY_SLOT -]], NumConst[value: 2]]]]]]]]WaitTimeStmt[time: NumConst[value: 200]] | ||
if SensorExpr [TouchKeySensor [RIGHT, PRESSED, - EMPTY_SLOT -]] | ||
,thenStmtFlowCon[flow: BREAK] | ||
|
||
) | ||
SerialWriteAction[value: StringConst[value: Motion]] | ||
WaitTimeStmt[time: NumConst[value: 300]] | ||
|
||
(repeat [FOREVER, BoolConst[value: true]] | ||
AktionStmt [SerialWriteAction[value: SensorExpr [MotionSensor [C, MOTION, - EMPTY_SLOT -]]]]WaitTimeStmt[time: NumConst[value: 200]] | ||
if SensorExpr [TouchKeySensor [RIGHT, PRESSED, - EMPTY_SLOT -]] | ||
,thenStmtFlowCon[flow: BREAK] | ||
|
||
) | ||
SerialWriteAction[value: StringConst[value: DONE]] | ||
WaitTimeStmt[time: NumConst[value: 500]] | ||
MethodCall [ball, , , VOID] | ||
MethodCall [color, , , VOID] | ||
MethodCall [motion, , , VOID] | ||
MethodCall [line, , , VOID] |
2 changes: 1 addition & 1 deletion
2
...est/resources/crossCompilerTests/_expected/robotSpecific/collectorResults/txt4/camera.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.