|
|
@@ -14,7 +14,10 @@ Prediction::~Prediction(void) {
|
|
|
void Prediction::step(void) {
|
|
|
}
|
|
|
|
|
|
-void Prediction::new_telemetry(LPoint3f& t_pos) {
|
|
|
+void Prediction::new_telemetry(LPoint3f&) {
|
|
|
+}
|
|
|
+
|
|
|
+void Prediction::force_telemetry(LPoint3f&) {
|
|
|
}
|
|
|
|
|
|
LPoint3f Prediction::get_pos(void) const {
|
|
|
@@ -37,7 +40,11 @@ void NullPrediction::step(void) {
|
|
|
}
|
|
|
|
|
|
void NullPrediction::new_telemetry(LPoint3f& t_pos) {
|
|
|
- // _curr_v = _curr_p - t_pos;
|
|
|
+ _curr_v = t_pos - _curr_p;
|
|
|
+ _curr_p = t_pos;
|
|
|
+}
|
|
|
+
|
|
|
+void NullPrediction::force_telemetry(LPoint3f& t_pos) {
|
|
|
_curr_v = t_pos - _curr_p;
|
|
|
_curr_p = t_pos;
|
|
|
}
|
|
|
@@ -53,5 +60,8 @@ LinearPrediction::~LinearPrediction(void) {
|
|
|
void LinearPrediction::step(void) {
|
|
|
}
|
|
|
|
|
|
-void LinearPrediction::new_telemetry(LPoint3f& t_pos) {
|
|
|
+void LinearPrediction::new_telemetry(LPoint3f&) {
|
|
|
+}
|
|
|
+
|
|
|
+void LinearPrediction::force_telemetry(LPoint3f&) {
|
|
|
}
|