 void updateScaleValue() {
 	// update the global measurement value, but only if the scale is ready to be read
 	if (scale.is_ready()){
-		scaleValue = scale.get_value();
-	}
-}
+		scaleValue = scale.get_units();
+	}
+}

	}
}

unsigned int nextBuffer(unsigned int index){
	// return the next index for the ring buffer
	index++;

	Serial.println("logging...");

	buildTest();

	writeToBuffer("time, motor, t1, t2, volt, amp, thrust\n");

	// start the log sampling ISR
	logSampler.priority(200); // set lowish priority.  We want to let regular fast ISRs (like servo timing) to be able to interrupt
	logSampler.begin(log, 5000); // start logger, 1000 micros = 1khz, 10000micros = 100hz
	runCurrentCommand();

	bool running = true;
