Files
StarPilot/selfdrive/monitoring/helpers.py
T
firestar5683 284bb45c0c that's alot
2026-06-26 15:29:52 -05:00

8 lines
347 B
Python

from openpilot.selfdrive.monitoring.policy import DRIVER_MONITOR_SETTINGS, DriverMonitoring, face_orientation_from_model
def face_orientation_from_net(angles_desc, pos_desc, rpy_calib):
pitch, yaw = face_orientation_from_model(angles_desc, pos_desc, rpy_calib)
roll = angles_desc[2] if len(angles_desc) > 2 else 0.
return roll, pitch, yaw