Reduce gsl::span usage so we can remove it
We already have absl::Span, no need to add more animals to the zoo.
This should let us delete 2 libraries out of third_party.
While we are here, the teensy code for 2019 wasn't being built. Fix
that.
Change-Id: I247750016926122240bc76e6194cf2ddfc15e9c2
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2019/jevois/uart.h b/y2019/jevois/uart.h
index 14a46da..7a7f251 100644
--- a/y2019/jevois/uart.h
+++ b/y2019/jevois/uart.h
@@ -1,9 +1,10 @@
#ifndef Y2019_JEVOIS_UART_H_
#define Y2019_JEVOIS_UART_H_
-#include "aos/containers/sized_array.h"
-#include "third_party/GSL/include/gsl/gsl"
#include <optional>
+
+#include "absl/types/span.h"
+#include "aos/containers/sized_array.h"
#include "y2019/jevois/cobs.h"
#include "y2019/jevois/structures.h"
@@ -30,11 +31,11 @@
aos::SizedArray<char, CobsMaxEncodedSize(uart_to_camera_size())>;
UartToTeensyBuffer UartPackToTeensy(const CameraFrame &message);
-std::optional<CameraFrame> UartUnpackToTeensy(gsl::span<const char> buffer);
+std::optional<CameraFrame> UartUnpackToTeensy(absl::Span<const char> buffer);
UartToCameraBuffer UartPackToCamera(const CameraCalibration &message);
std::optional<CameraCalibration> UartUnpackToCamera(
- gsl::span<const char> buffer);
+ absl::Span<const char> buffer);
} // namespace jevois
} // namespace frc971