From 4932ffbf3188e4c7719595bd324873a9ff9de6ac Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Fri, 27 Dec 2019 14:35:56 +0100 Subject: [PATCH] [types] Add Steering and Throttle types --- types/confidence.go | 4 ---- types/rc.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 types/confidence.go create mode 100644 types/rc.go diff --git a/types/confidence.go b/types/confidence.go deleted file mode 100644 index 8856a56..0000000 --- a/types/confidence.go +++ /dev/null @@ -1,4 +0,0 @@ -package types - -/* Metadata value on mesure */ -type Confidence float64 diff --git a/types/rc.go b/types/rc.go new file mode 100644 index 0000000..6568d92 --- /dev/null +++ b/types/rc.go @@ -0,0 +1,10 @@ +package types + +/* Radio control value */ +type RCValue struct { + Value float64 + Confidence float64 +} + +type Steering RCValue +type Throttle RCValue