mirror of
https://gitlab.com/lander-team/tvc-test-code.git
synced 2025-06-16 15:06:56 +00:00
made test more verbose
This commit is contained in:
parent
8d53c7ea56
commit
c06234ef28
14
src/main.cpp
14
src/main.cpp
@ -17,17 +17,25 @@ void setup() {
|
||||
yaw.attach(9); // CHANGE MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
|
||||
pitch.attach(10); // CHANGE MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
|
||||
|
||||
Serial.println("Level the TVC and press enter.");
|
||||
Serial.println("Remove Servo Horns and press enter.");
|
||||
read_float();
|
||||
yaw.write(0);
|
||||
pitch.write(0);
|
||||
|
||||
Serial.println("Replace horns, level the TVC and press enter.");
|
||||
read_float();
|
||||
|
||||
Serial.println("Testing Servos");
|
||||
|
||||
// Do a full range of movement of the servos
|
||||
for (double pct = -100.0; pct <= 100.0; pct += 1.0) {
|
||||
for (double pct = -100.0; pct <= 100.0; pct += 10.0) {
|
||||
Serial.print(".");
|
||||
double yaw_pos = pct * YAW_MAX;
|
||||
double pitch_pos = pct * PITCH_MAX;
|
||||
|
||||
yaw.write(yaw_pos);
|
||||
pitch.write(pitch_pos);
|
||||
delay(15);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
Serial.print("Please input the point height in millimeters: ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user