File size: 243 Bytes
516495b
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from idreamers.api.calculation.schemas import PilotResponse


def calculate_pilot_axes(q1: int, q2: int, q3: int, q4: int) -> PilotResponse:
    return PilotResponse(
        x=round((q1 + q2) / 2, 2),
        y=round((q3 + q4) / 2, 2),
    )