 //// helper functions
 //
 
-int8_t getAdjustment(uint8_t pinH, uint8_t pinL, int8_t adj) // get control input
+int16_t getAdjustment(uint8_t pinH, uint8_t pinL, int8_t adj) // get control input
 {
   switch (digitalRead(pinH) ? HIGH : (digitalRead(pinL) ? LOW : NEUTRAL))
   {
     case HIGH:
-      if ((adj += RAMP_ADJUST) > RAMP_MAX)
+      if (adj++ > RAMP_MAX)
         adj = RAMP_MAX;
       break;
 
     case LOW:
-      if ((adj -= RAMP_ADJUST) < RAMP_MIN)
+      if (adj-- < RAMP_MIN)
         adj = RAMP_MIN;
       break;
 

// state == 0 to DELAY_OP-1 -> off / debounce, state == DELAY_OP -> on
uint8_t opState[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
// operation pins set to zero are skipped
uint8_t opPin[] =
{
  0,             // null
  0,             // action group 1

#define OPS (sizeof(opPin) / sizeof(uint8_t))

// helm
#define RAMP_MAX 50
#define RAMP_MIN -RAMP_MAX
#define DIR_MAX 2000
#define DIR_MIN -DIR_MAX

#define PITCH_STICK digitalRead(PIN_PITCH_S)
#define ROLL_STICK digitalRead(PIN_ROLL_S)
