Merge changes from topics "adaptive_cruise_control_enabled", "emergency_lane_keep_assist_enabled", "hands_on_detection_enabled"
* changes: Added HANDS_ON_DETECTION_ENABLED to hardware layer. Added ADAPTIVE_CRUISE_CONTROL_ENABLED to hardware layer. Added EMERGENCY_LANE_KEEP_ASSIST_ENABLED to hardware layer.
This commit is contained in:
commit
a5e546788e
8 changed files with 110 additions and 2 deletions
|
@ -242,4 +242,7 @@ enum VehicleProperty {
|
||||||
BLIND_SPOT_WARNING_ENABLED = 287313924,
|
BLIND_SPOT_WARNING_ENABLED = 287313924,
|
||||||
LANE_DEPARTURE_WARNING_ENABLED = 287313926,
|
LANE_DEPARTURE_WARNING_ENABLED = 287313926,
|
||||||
LANE_CENTERING_ASSIST_ENABLED = 287313930,
|
LANE_CENTERING_ASSIST_ENABLED = 287313930,
|
||||||
|
EMERGENCY_LANE_KEEP_ASSIST_ENABLED = 287313933,
|
||||||
|
ADAPTIVE_CRUISE_CONTROL_ENABLED = 287313935,
|
||||||
|
HANDS_ON_DETECTION_ENABLED = 287313941,
|
||||||
}
|
}
|
||||||
|
|
|
@ -3505,6 +3505,57 @@ enum VehicleProperty {
|
||||||
LANE_CENTERING_ASSIST_ENABLED =
|
LANE_CENTERING_ASSIST_ENABLED =
|
||||||
0x100A + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,
|
0x100A + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable or disable emergency lane keep assist (ELKA).
|
||||||
|
*
|
||||||
|
* Set true to enable ELKA and false to disable ELKA. When ELKA is enabled, the ADAS system in
|
||||||
|
* the vehicle should be on and monitoring for unsafe lane changes by the driver. When an unsafe
|
||||||
|
* maneuver is detected, ELKA alerts the driver and applies steering corrections to keep the
|
||||||
|
* vehicle in its original lane.
|
||||||
|
*
|
||||||
|
* This property is defined as read_write, but OEMs have the option to implement it as read
|
||||||
|
* only.
|
||||||
|
*
|
||||||
|
* @change_mode VehiclePropertyChangeMode.ON_CHANGE
|
||||||
|
* @access VehiclePropertyAccess.READ_WRITE
|
||||||
|
*/
|
||||||
|
EMERGENCY_LANE_KEEP_ASSIST_ENABLED =
|
||||||
|
0x100D + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable or disable adaptive cruise control (ACC).
|
||||||
|
*
|
||||||
|
* Set true to enable ACC and false to disable ACC. When ACC is enabled, the ADAS system in the
|
||||||
|
* vehicle should be turned on and waiting for an activation signal from the driver. Once the
|
||||||
|
* feature is activated, the ADAS system in the car should be accelerating and braking in a way
|
||||||
|
* that allows the vehicle to maintain a set speed and to maintain a set distance gap from a
|
||||||
|
* leading vehicle.
|
||||||
|
*
|
||||||
|
* This property is defined as read_write, but OEMs have the option to implement it as read
|
||||||
|
* only.
|
||||||
|
*
|
||||||
|
* @change_mode VehiclePropertyChangeMode.ON_CHANGE
|
||||||
|
* @access VehiclePropertyAccess.READ_WRITE
|
||||||
|
*/
|
||||||
|
ADAPTIVE_CRUISE_CONTROL_ENABLED =
|
||||||
|
0x100F + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable or disable hands on detection (HOD).
|
||||||
|
*
|
||||||
|
* Set true to enable HOD and false to disable HOD. When HOD is enabled, a system inside the
|
||||||
|
* vehicle should be monitoring the presence of the driver's hands on the steering wheel and
|
||||||
|
* send a warning if it detects that the driver's hands are no longer on the steering wheel.
|
||||||
|
*
|
||||||
|
* This property is defined as read_write, but OEMs have the option to implement it as read
|
||||||
|
* only.
|
||||||
|
*
|
||||||
|
* @change_mode VehiclePropertyChangeMode.ON_CHANGE
|
||||||
|
* @access VehiclePropertyAccess.READ_WRITE
|
||||||
|
*/
|
||||||
|
HANDS_ON_DETECTION_ENABLED =
|
||||||
|
0x1015 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.BOOLEAN,
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* End of ADAS Properties
|
* End of ADAS Properties
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
|
@ -242,6 +242,9 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
|
||||||
{VehicleProperty::BLIND_SPOT_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
{VehicleProperty::BLIND_SPOT_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
||||||
{VehicleProperty::LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
{VehicleProperty::LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
||||||
{VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
{VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
||||||
|
{VehicleProperty::EMERGENCY_LANE_KEEP_ASSIST_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
||||||
|
{VehicleProperty::ADAPTIVE_CRUISE_CONTROL_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
||||||
|
{VehicleProperty::HANDS_ON_DETECTION_ENABLED, VehiclePropertyAccess::READ_WRITE},
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace vehicle
|
} // namespace vehicle
|
||||||
|
|
|
@ -242,6 +242,9 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
|
||||||
{VehicleProperty::BLIND_SPOT_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
{VehicleProperty::BLIND_SPOT_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
||||||
{VehicleProperty::LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
{VehicleProperty::LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
||||||
{VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
{VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
||||||
|
{VehicleProperty::EMERGENCY_LANE_KEEP_ASSIST_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
||||||
|
{VehicleProperty::ADAPTIVE_CRUISE_CONTROL_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
||||||
|
{VehicleProperty::HANDS_ON_DETECTION_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace vehicle
|
} // namespace vehicle
|
||||||
|
|
|
@ -233,7 +233,10 @@ public final class AccessForVehicleProperty {
|
||||||
Map.entry(VehicleProperty.FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
Map.entry(VehicleProperty.FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
||||||
Map.entry(VehicleProperty.BLIND_SPOT_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
Map.entry(VehicleProperty.BLIND_SPOT_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
||||||
Map.entry(VehicleProperty.LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
Map.entry(VehicleProperty.LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
||||||
Map.entry(VehicleProperty.LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess.READ_WRITE)
|
Map.entry(VehicleProperty.LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
||||||
|
Map.entry(VehicleProperty.EMERGENCY_LANE_KEEP_ASSIST_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
||||||
|
Map.entry(VehicleProperty.ADAPTIVE_CRUISE_CONTROL_ENABLED, VehiclePropertyAccess.READ_WRITE),
|
||||||
|
Map.entry(VehicleProperty.HANDS_ON_DETECTION_ENABLED, VehiclePropertyAccess.READ_WRITE)
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -233,7 +233,10 @@ public final class ChangeModeForVehicleProperty {
|
||||||
Map.entry(VehicleProperty.FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
Map.entry(VehicleProperty.FORWARD_COLLISION_WARNING_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
||||||
Map.entry(VehicleProperty.BLIND_SPOT_WARNING_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
Map.entry(VehicleProperty.BLIND_SPOT_WARNING_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
||||||
Map.entry(VehicleProperty.LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
Map.entry(VehicleProperty.LANE_DEPARTURE_WARNING_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
||||||
Map.entry(VehicleProperty.LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyChangeMode.ON_CHANGE)
|
Map.entry(VehicleProperty.LANE_CENTERING_ASSIST_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
||||||
|
Map.entry(VehicleProperty.EMERGENCY_LANE_KEEP_ASSIST_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
||||||
|
Map.entry(VehicleProperty.ADAPTIVE_CRUISE_CONTROL_ENABLED, VehiclePropertyChangeMode.ON_CHANGE),
|
||||||
|
Map.entry(VehicleProperty.HANDS_ON_DETECTION_ENABLED, VehiclePropertyChangeMode.ON_CHANGE)
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2960,6 +2960,30 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"property": "VehicleProperty::EMERGENCY_LANE_KEEP_ASSIST_ENABLED",
|
||||||
|
"defaultValue": {
|
||||||
|
"int32Values": [
|
||||||
|
1
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"property": "VehicleProperty::ADAPTIVE_CRUISE_CONTROL_ENABLED",
|
||||||
|
"defaultValue": {
|
||||||
|
"int32Values": [
|
||||||
|
1
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"property": "VehicleProperty::HANDS_ON_DETECTION_ENABLED",
|
||||||
|
"defaultValue": {
|
||||||
|
"int32Values": [
|
||||||
|
1
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"property": "VehicleProperty::INITIAL_USER_INFO"
|
"property": "VehicleProperty::INITIAL_USER_INFO"
|
||||||
},
|
},
|
||||||
|
|
|
@ -481,6 +481,24 @@ void VtsHalAutomotiveVehicleTargetTest::verifyProperty(VehicleProperty propId,
|
||||||
actualPropertyType);
|
actualPropertyType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_P(VtsHalAutomotiveVehicleTargetTest, verifyEmergencyLaneKeepAssistEnabledConfig) {
|
||||||
|
verifyProperty(VehicleProperty::EMERGENCY_LANE_KEEP_ASSIST_ENABLED,
|
||||||
|
VehiclePropertyAccess::READ_WRITE, VehiclePropertyChangeMode::ON_CHANGE,
|
||||||
|
VehiclePropertyGroup::SYSTEM, VehicleArea::GLOBAL, VehiclePropertyType::BOOLEAN);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_P(VtsHalAutomotiveVehicleTargetTest, verifyAdaptiveCruiseControlEnabledConfig) {
|
||||||
|
verifyProperty(VehicleProperty::ADAPTIVE_CRUISE_CONTROL_ENABLED,
|
||||||
|
VehiclePropertyAccess::READ_WRITE, VehiclePropertyChangeMode::ON_CHANGE,
|
||||||
|
VehiclePropertyGroup::SYSTEM, VehicleArea::GLOBAL, VehiclePropertyType::BOOLEAN);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_P(VtsHalAutomotiveVehicleTargetTest, verifyHandsOnDetectionEnabledConfig) {
|
||||||
|
verifyProperty(VehicleProperty::HANDS_ON_DETECTION_ENABLED, VehiclePropertyAccess::READ_WRITE,
|
||||||
|
VehiclePropertyChangeMode::ON_CHANGE, VehiclePropertyGroup::SYSTEM,
|
||||||
|
VehicleArea::GLOBAL, VehiclePropertyType::BOOLEAN);
|
||||||
|
}
|
||||||
|
|
||||||
TEST_P(VtsHalAutomotiveVehicleTargetTest, verifyEvBrakeRegenerationLevelConfig) {
|
TEST_P(VtsHalAutomotiveVehicleTargetTest, verifyEvBrakeRegenerationLevelConfig) {
|
||||||
verifyProperty(VehicleProperty::EV_BRAKE_REGENERATION_LEVEL,
|
verifyProperty(VehicleProperty::EV_BRAKE_REGENERATION_LEVEL,
|
||||||
VehiclePropertyAccess::READ_WRITE, VehiclePropertyChangeMode::ON_CHANGE,
|
VehiclePropertyAccess::READ_WRITE, VehiclePropertyChangeMode::ON_CHANGE,
|
||||||
|
|
Loading…
Reference in a new issue