changed the test implementation functionality from H1 to manual override button, added 2 indicator lights for the override button, and added them to the docu + functional description
This commit is contained in:
@@ -33,7 +33,7 @@ public class ManualDriveActivity extends AppCompatActivity {
|
||||
|
||||
setContentView(R.layout.activity_manual_drive);
|
||||
|
||||
ToggleButton button = (ToggleButton) findViewById(R.id.h1_control_button);
|
||||
ToggleButton button = (ToggleButton) findViewById(R.id.manual_override_button);
|
||||
button.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
@@ -68,8 +68,8 @@ public class ManualDriveActivity extends AppCompatActivity {
|
||||
String action = intent.getAction();
|
||||
boolean supposedToBeValue = intent.getBooleanExtra("coil", false);
|
||||
|
||||
ImageView lightOn = (ImageView) findViewById(R.id.h1_status_light_on);
|
||||
ImageView lightOff = (ImageView) findViewById(R.id.h1_status_light_off);
|
||||
ImageView lightOn = (ImageView) findViewById(R.id.manual_override_status_light_on);
|
||||
ImageView lightOff = (ImageView) findViewById(R.id.manual_override_status_light_on);
|
||||
|
||||
if (supposedToBeValue) {
|
||||
lightOn.setVisibility(View.VISIBLE);
|
||||
|
Reference in New Issue
Block a user