RIG InMoov Project
Enumerations | Functions | Variables
flex.ino File Reference
#include "settings.h"

Go to the source code of this file.

Enumerations

enum  {
  CANCEL_SIGNAL = 255, MIN_SIGNAL = 250, MAX_SIGNAL = 249, START_RESPONSE = 252,
  END_RESPONSE = 251, CALIB_RESPONSE_LEN = FLEXS * 2, MIN_LIM = 0, MAX_LIM = 1
}
 

Functions

void setup ()
 
void loop ()
 
int analogGetInt (uint8_t flex_index)
 
int getAdjustedFlex (uint8_t flex_index, int flex_amount)
 
int getFlexMax (uint8_t flex_index)
 
int getFlexMin (uint8_t flex_index)
 
void softSerialServoCmd (uint8_t servo_id, int servo_angle)
 

Variables

int current_pos [6] = { 0 }
 

Detailed Description

This is the code for the flex sensor board.

Programs generated with this file translate values read from variable resistance (flex sensors) hooked up to voltage divider into values from 0-180 for the servo controller to read.

Definition in file flex.ino.