 void setup()
 {
   setupSerial();
-  
+
   setupState();
   setupHelm();
   setupOps();

//// helper functions
//

int8_t readDirection(uint8_t pinH, uint8_t pinL, int8_t adj) // get control input
{
  switch (digitalRead(pinH) ? full : (digitalRead(pinL) ? half : zero))
  {


void updateHelm()
{
  pitch_adj = getAdjustment(PITCH_PINS, pitch_adj);
  pitch = getDirection(pitch, pitch_adj, PITCH_STICK);
  Serial.println(pitch);

  roll_adj = getAdjustment(ROLL_PINS, roll_adj);
  roll = getDirection(roll, roll_adj, ROLL_STICK);
  Serial.println(roll);

  yaw_adj = getAdjustment(YAW_PINS, yaw_adj);
  yaw = getDirection(yaw, yaw_adj, YAW_STICK);

  throttle = getThrottle(PIN_THROTTLE);
  Serial.println(throttle);
}

