mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-15 17:52:34 +00:00
Added opmodes to start/stop TACNET service, sync.
This commit is contained in:
@@ -55,7 +55,7 @@ becomes obsolete.
|
||||
### Device Configuration Names
|
||||
|
||||
The following device names are used in the external samples
|
||||
|
||||
|
||||
** Motors:
|
||||
left_drive
|
||||
right_drive
|
||||
@@ -82,7 +82,7 @@ digout
|
||||
** Localization:
|
||||
compass
|
||||
gyro
|
||||
imu
|
||||
imu
|
||||
navx
|
||||
|
||||
### Device Object Names
|
||||
|
||||
@@ -183,6 +183,11 @@ public class FtcRobotControllerActivity extends Activity
|
||||
|
||||
private WifiDirectChannelChanger wifiDirectChannelChanger;
|
||||
|
||||
private static FtcRobotControllerActivity appActivity;
|
||||
public static FtcRobotControllerActivity getAppActivity() {
|
||||
return appActivity;
|
||||
}
|
||||
|
||||
protected class RobotRestarter implements Restarter {
|
||||
|
||||
public void requestRestart() {
|
||||
@@ -267,6 +272,7 @@ public class FtcRobotControllerActivity extends Activity
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
appActivity = this;
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
if (enforcePermissionValidator()) {
|
||||
|
||||
Reference in New Issue
Block a user