Skip to content

Commit a708fb2

Browse files
authored
Merge pull request #114 from LeeLeahy2/rtk-surveyor-states
RTK Surveyor states
2 parents e91bf0d + 16a06e7 commit a708fb2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Firmware/RTK_Surveyor/Tasks.ino

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,39 @@ void ButtonCheckTask(void *e)
132132

133133
while (true)
134134
{
135+
/* RTK Surveyor
136+
137+
.----------------------------.
138+
| |
139+
V |
140+
.------------------. |
141+
| Power On | |
142+
'------------------' |
143+
| |
144+
| Setup button = 0 |
145+
V |
146+
.------------------. |
147+
.------>| Rover Mode | |
148+
| '------------------' |
149+
| | |
150+
| | Setup button = 1 |
151+
| V |
152+
| .------------------. |
153+
'-------| Base Mode | |
154+
Setup button = 0 '------------------' |
155+
after long time | | |
156+
| | Setup button = 0 |
157+
Setup button = 0 | | after short time |
158+
after short time | | (< 500 mSec) |
159+
(< 500 mSec) | | |
160+
STATE_ROVER_NOT_STARTED | | |
161+
V V |
162+
.------------------. .------------------. |
163+
| Test Mode | | WiFi Config Mode |----------'
164+
'------------------' '------------------'
165+
166+
*/
167+
135168
if (productVariant == RTK_SURVEYOR)
136169
{
137170
setupBtn->read();

0 commit comments

Comments
 (0)