Skip to content

Commit

Permalink
Rover: fixed copying of filter objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jun 8, 2021
1 parent 0ecc02c commit f150c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rover/Rover.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ class Rover : public AP_Vehicle {

// cruise throttle and speed learning
typedef struct {
LowPassFilterFloat speed_filt = LowPassFilterFloat(2.0f);
LowPassFilterFloat throttle_filt = LowPassFilterFloat(2.0f);
LowPassFilterFloat speed_filt{2.0f};
LowPassFilterFloat throttle_filt{2.0f};
uint32_t learn_start_ms;
uint32_t log_count;
} cruise_learn_t;
Expand Down

0 comments on commit f150c31

Please sign in to comment.