diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-25 09:48:15 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-25 09:48:15 +0100 |
commit | 25af4b266ca48b183a1ad375856396f67d6ab30f (patch) | |
tree | 64e031ec3747ab706e5ae8ed9fd052e12ee3248b /Tools/tests-host/data/fit_linear_voltage.m | |
parent | ad189cf7d69b8de16244b90d398e1d84ed6d0f4b (diff) | |
parent | 9b535f6553944f3468bbec9203301623412524ad (diff) | |
download | px4-firmware-25af4b266ca48b183a1ad375856396f67d6ab30f.tar.gz px4-firmware-25af4b266ca48b183a1ad375856396f67d6ab30f.tar.bz2 px4-firmware-25af4b266ca48b183a1ad375856396f67d6ab30f.zip |
Merge remote-tracking branch 'upstream/master' into dev_ros
Conflicts:
.gitignore
src/lib/uavcan
Diffstat (limited to 'Tools/tests-host/data/fit_linear_voltage.m')
-rw-r--r-- | Tools/tests-host/data/fit_linear_voltage.m | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Tools/tests-host/data/fit_linear_voltage.m b/Tools/tests-host/data/fit_linear_voltage.m deleted file mode 100644 index 7d0c2c27f..000000000 --- a/Tools/tests-host/data/fit_linear_voltage.m +++ /dev/null @@ -1,14 +0,0 @@ -close all; -clear all; -M = importdata('px4io_v1.3.csv'); -voltage = M.data(:, 1); -counts = M.data(:, 2); -plot(counts, voltage, 'b*-', 'LineWidth', 2, 'MarkerSize', 15); -coeffs = polyfit(counts, voltage, 1); -fittedC = linspace(min(counts), max(counts), 500); -fittedV = polyval(coeffs, fittedC); -hold on -plot(fittedC, fittedV, 'r-', 'LineWidth', 3); - -slope = coeffs(1) -y_intersection = coeffs(2) |