Skip to content

Commit

Permalink
Bug fixed. (#444) (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC authored Oct 11, 2024
1 parent 3006412 commit 59ede1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions leads_vec_rc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def on_receive(self, service: Service, msg: bytes) -> None:
time_stamp_record)) > 1 else 0
f_forward = CAR_MASS * d["forward_acceleration"] * CAR_CENTER_OF_MASS * .5 / CAR_WIDTH
f_lateral = CAR_MASS * d["lateral_acceleration"] * CAR_CENTER_OF_MASS * .5 / CAR_LENGTH
d["cfc_fl"] = mg - f_lateral - f_forward
d["cfc_fr"] = mg + f_lateral - f_forward
d["cfc_rl"] = mg - f_lateral + f_forward
d["cfc_rr"] = mg + f_lateral + f_forward
d["cfc_fl"] = mg + f_lateral - f_forward
d["cfc_fr"] = mg - f_lateral - f_forward
d["cfc_rl"] = mg + f_lateral + f_forward
d["cfc_rr"] = mg - f_lateral + f_forward
self.current_data = d
if config.save_data:
try_create_csv(d)
Expand Down

0 comments on commit 59ede1e

Please sign in to comment.