/v1/velocity
Piston velocity & acceleration
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/crankslider-api/v1/velocity" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/crankslider-api/v1/velocity", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/crankslider-api/v1/velocity");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/crankslider-api/v1/velocity",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"inputs": {
"angle_deg": 90,
"rod_length": 0.2,
"crank_radius": 0.05,
"angular_velocity": 314.159265
},
"velocity_note": "Exact velocity v = ω·[r·sinθ + r·λ·sinθcosθ/√(1−λ²sin²θ)]; positive = moving from TDC toward BDC.",
"piston_velocity": 15.707963,
"acceleration_note": "Standard 2-term approximation a ≈ r·ω²·(cosθ + λ·cos2θ).",
"piston_acceleration": -1233.70055
},
"meta": {
"timestamp": "2026-06-04T10:18:36.285Z",
"request_id": "cb0f28fd-b127-495c-8d01-ac239f0bd678"
},
"status": "ok",
"message": "Piston velocity & accel",
"success": true
}