💯 Adds initial IK and servo functionality

This commit is contained in:
Rune Harlyk
2023-05-06 02:24:50 +02:00
parent baa14da9ff
commit 9705628f29
10 changed files with 659 additions and 9 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef IK_TASK_H
#define IK_TASK_H
#include <Arduino.h>
#include <servo.h>
#include <IK_config.h>
#include <spot_ik.h>
#define DEGREES2RAD 0.017453292519943
typedef struct {
float omega;
float phi;
float psi;
float xm;
float ym;
float zm;
bool set;
} position_t;
void set_orientation_cb(int16_t omega, int16_t phi, int16_t psi, int16_t xm, int16_t ym, int16_t zm);
void reset_position();
void task_ik(void *ignore);
#endif