Philipp Schrader | e8ad638 | 2017-04-09 21:51:21 +0000 | [diff] [blame] | 1 | #include "frc971/shooter_interpolation/interpolation.h" |
| 2 | |
| 3 | #include <algorithm> |
| 4 | #include <utility> |
| 5 | #include <vector> |
| 6 | |
| 7 | namespace frc971 { |
| 8 | namespace shooter_interpolation { |
| 9 | |
Philipp Schrader | e8ad638 | 2017-04-09 21:51:21 +0000 | [diff] [blame] | 10 | double Blend(double coefficient, double a1, double a2) { |
| 11 | return (1 - coefficient) * a1 + coefficient * a2; |
| 12 | } |
| 13 | |
Philipp Schrader | e8ad638 | 2017-04-09 21:51:21 +0000 | [diff] [blame] | 14 | } // namespace shooter_interpolation |
| 15 | } // namespace frc971 |