Command: |
READ RV.ETA |
---|---|
Command Syntax: |
READ READ RV.ETA |
Code |
Send("READ RV.ETA") |
Example: |
The code sample below returns the estimated time to drive to coordinate (4,4) |
Code |
Send "RV TO XY 4 4" Send "READ RV.ETA" Get eta Disp eta |
|
Note: This value will not be exact. It will depend on the surface for one, but it will be a close enough estimate for the expected applications. The value will be time in seconds with a minimum unit of 100 ms. |
Example |
If a different READ command is issued, the value of the variable is overwritten with the information that was requested. |
Code |
Send "RV TO XY 3 4" Send "READ BRIGHTNESS" Get eta |
|
Note: eta - will contain the value of the BRIGHTNESS sensor, not the RV.ETA variable |
Range: |
N/A |
Describe: |
Calculate the estimated time to complete each Rover command. |
Result: |
|
Type or |
Returns Data |
Set RGB to red while moving forward, green when turning.
Code |
For n, 1, 4 Send "RV FORWARD" Send "READ RV.ETA" Get eta Send "SET COLOR 255 0 0" Wait eta Send "RV LEFT" Send "READ RV.ETA" Get eta Send "SET COLOR 0 255 0" Wait eta EndFor |