diff options
author | James Goppert <james.goppert@gmail.com> | 2013-06-29 15:31:23 -0400 |
---|---|---|
committer | James Goppert <james.goppert@gmail.com> | 2013-07-28 00:05:56 -0400 |
commit | 78ef6f5265d5f4e84d4e36be37fc7329587df0a3 (patch) | |
tree | ded6178acb61a6f021b1d837906a5be3edd2f52e /src/drivers | |
parent | f2a0cce958db1c97eb70d43c3151992ccaed4cab (diff) | |
download | px4-firmware-78ef6f5265d5f4e84d4e36be37fc7329587df0a3.tar.gz px4-firmware-78ef6f5265d5f4e84d4e36be37fc7329587df0a3.tar.bz2 px4-firmware-78ef6f5265d5f4e84d4e36be37fc7329587df0a3.zip |
Changed final time.
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/md25/md25.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/md25/md25.cpp b/src/drivers/md25/md25.cpp index 7a1e7b7f4..375072bb0 100644 --- a/src/drivers/md25/md25.cpp +++ b/src/drivers/md25/md25.cpp @@ -578,6 +578,7 @@ int md25Sine(const char *deviceName, uint8_t bus, uint8_t address) float dt = 0.1; float amplitude = 0.2; float frequency = 0.3; + float t_final = 30.0; // input signal control::UOrbPublication<debug_key_value_s> input_signal(NULL, @@ -614,7 +615,7 @@ int md25Sine(const char *deviceName, uint8_t bus, uint8_t address) output_signal.update(); mavlink_log_info(mavlink_fd, "rpm: %10.4f\n", (double)speed_rpm); md25.readData(); - if (t > 2.0f) break; + if (t > t_final) break; } md25.setMotor1Speed(0); |