changed library descriptor, nano compatible
This commit is contained in:
parent
b5ac2d6875
commit
2cb7977856
@ -6,4 +6,4 @@ sentence=ESP32 Movement library for a simple 4 leg 8 servo crab like robot Libra
|
|||||||
paragraph=A library that creates simple commands for complex robotic movements of a 4 leg 8 servo crab when using the ESP32
|
paragraph=A library that creates simple commands for complex robotic movements of a 4 leg 8 servo crab when using the ESP32
|
||||||
category=Signal Input/Output
|
category=Signal Input/Output
|
||||||
url=https://github.com/s00500/LARS
|
url=https://github.com/s00500/LARS
|
||||||
architectures=ESP32
|
architectures=*
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
#ifndef LARS_h
|
#ifndef LARS_h
|
||||||
#define LARS_h
|
#define LARS_h
|
||||||
|
|
||||||
|
#if defined(ESP32)
|
||||||
#include <ESP32_Servo.h>
|
#include <ESP32_Servo.h>
|
||||||
|
#else
|
||||||
|
#include <Servo.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Octosnake.h"
|
#include "Octosnake.h"
|
||||||
|
|
||||||
// servo index to board_pins
|
// servo index to board_pins
|
||||||
@ -20,7 +26,7 @@ class LARS {
|
|||||||
public:
|
public:
|
||||||
LARS();
|
LARS();
|
||||||
void init();
|
void init();
|
||||||
void walk(int dir = 1, float steps = 1, float T = 800); // T initial 400
|
void walk(int dir = 0, float steps = 1, float T = 800); // T initial 400
|
||||||
void omniWalk(float steps, float T, bool side, float turn_factor);
|
void omniWalk(float steps, float T, bool side, float turn_factor);
|
||||||
void turnL(float steps, float period);
|
void turnL(float steps, float period);
|
||||||
void turnR(float steps, float period);
|
void turnR(float steps, float period);
|
||||||
|
Loading…
Reference in New Issue
Block a user