From 840e9ada5a012075c8715e437d6175c79bff241f Mon Sep 17 00:00:00 2001 From: Robert Atkinson Date: Thu, 4 Feb 2016 13:43:21 -0800 Subject: [PATCH] Implement robust opmode stop, etc, notifications; remove phone name checking logic: we defer to sdk level checks, no more. Former-commit-id: 0ced6daaf0885edb1d57041330aa75afb949f3e4 Former-commit-id: 8e1d3918cb11ccc930ce9c0d199b0f8dca4f0535 --- FtcRobotController/libs/FtcCommon-release.aar | Bin 206813 -> 206849 bytes FtcRobotController/libs/Hardware-release.aar | Bin 117236 -> 117237 bytes FtcRobotController/libs/RobotCore-release.aar | Bin 273909 -> 274124 bytes .../FtcRobotControllerActivity.java | 84 ------- .../RobotStateTransitionNotifier.java | 129 ++-------- .../library/internal/SwerveFtcEventLoop.java | 22 +- .../library/internal/SwerveOpModeManager.java | 63 +++++ .../internal/tests/DerivedMotorTest.java | 24 +- .../library/internal/tests/Team25DcMotor.java | 233 ------------------ 9 files changed, 113 insertions(+), 442 deletions(-) create mode 100644 SwerveRoboticsLibrary/src/main/java/org/swerverobotics/library/internal/SwerveOpModeManager.java delete mode 100644 SwerveRoboticsLibrary/src/main/java/org/swerverobotics/library/internal/tests/Team25DcMotor.java diff --git a/FtcRobotController/libs/FtcCommon-release.aar b/FtcRobotController/libs/FtcCommon-release.aar index 14bce7c2c843aea8147a4738b393e056a53361b0..275f93aa806c863c2d74f8ce79c8b7d9062a7c1a 100644 GIT binary patch delta 50279 zcmV(yKge-{mH;<{N5$$erZ!gq zXuh8$x2`rMhOPYFEU3XX?oy<78rD(&?9P#Tt&=pNdMO$fokS&@N@6e>r?e>daFY zSI$TT4}7n&Z?Q5$XPXH9S7(CR&WNP8sT)0Vw)S@1N)rb+*U}_a{J5RPu2Do+p_tS{ z%hR8IRifanI1yy=Fawi3q2mrmRZ~p<7e+FZ39lQs){=%xs${7PPr#_p4xFAdie`>Bc@AGdav<*v2FeN>fl3PfHiCA06JR25UNkCYFF$8dgH8XqOywb>N{JBE7)XySc{RPhaeXLI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