Skip to content

Commit 74d5712

Browse files
committed
Hard coded params for now
1 parent 5591058 commit 74d5712

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drone_estimators/ros_nodes/estimators.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ integrator = "euler" # TODO add RK4
1111
jit_compile = false # TODO add jit compilation for faster estimators
1212

1313
[estimator1]
14-
estimator_type = "ukf"
14+
estimator_type = "legacy"
1515
drone_name = "cf52"
16-
drone_config = "cf2x_L250"
16+
drone_config = "cf2x_B500"
1717
dynamics_model = "so_rpy_rotor_drag_dynamics"
1818
estimate_rotor_vel = true
1919
estimate_dist_f = true

drone_estimators/ros_nodes/ros2_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def run(self):
232232
# All the models run with rad and N, so we need to convert the RPYT command
233233
cmd[..., -1] = pwm2force(
234234
cmd[..., -1],
235-
self.estimator.constants.THRUST_MAX * 4,
236-
self.estimator.constants.PWM_MAX,
235+
0.18 * 4, # TODO remove hard coded value
236+
65535, # TODO remove hard coded value
237237
)
238238
cmd[..., :-1] = np.deg2rad(cmd[..., :-1])
239239
self.estimator.set_input(cmd) # TODO # compare times?

0 commit comments

Comments
 (0)