Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.

KIP API

G M Rowland edited this page Aug 25, 2018 · 2 revisions

KIP API

This document documents the routes used to control KIP with the Flask API.

HTTP Response Codes

  • 200 - OK Everything worked as expected.
  • 404 - Not Found The requested resource doesn't exist.

Setters


Set Generic Servo Position

/set/servo/<int:servo_id>/<float:servo_position>

This will set the servo, specified using an integer servo_id, to the position given between 1 and 0 with servo_position.


Set Motor Position

/set/motor/<int:motor_id>/<int:position>

This will set the motor, specified by the integer motor_id, to the arbitrary position (in steps) with position.


Set Motor Motion Profile

/set/motor/motionprofile/<int:motor_id>

This will give a motion profile using a querystring array to the motor specified with motor_id.


Getters


/get/sensor/<int:sensor_id>

Gets data from arbitrary sensor specified with sensor_id.


Clone this wiki locally