We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a344549 commit 2ed2180Copy full SHA for 2ed2180
1 file changed
deploy/src/main.jl
@@ -172,6 +172,7 @@ function (@main)(args)::Cint
172
put!(timu.request, true) # trigger the IMU request
173
wait_until(start + ml_update_rate_ns)
174
imu_data = take!(timu.response)
175
+ println(Core.stdout, "IMU response: $(imu_data.accel_x)")
176
enc_1_cnts = reset!(tenc_1a)
177
enc_2_cnts = reset!(tenc_2a)
178
command = BalanceController.balance_car!(ctrl, enc_1_cnts, enc_2_cnts,
@@ -180,9 +181,11 @@ function (@main)(args)::Cint
180
181
start = time_ns()
182
if isnothing(command)
183
car_stop!(hw)
184
+ println(Core.stdout, "motors stopped!")
185
else
186
left, right = command
187
apply_motor_output!(hw, left, right)
188
+ println(Core.stdout, "motors run!")
189
end
190
191
catch e
0 commit comments