Skip to content

Commit 4289c66

Browse files
committed
Add some extra logging
1 parent 22c7fa1 commit 4289c66

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

deploy/src/main.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,15 @@ end
7171
function (@main)(args)::Cint
7272
println(Core.stdout, "hello world!")
7373
p = Pi()
74+
println(Core.stdout, "pi startup done")
7475
handle_err(PiGPIO.hardware_PWM(p, PWMA_LEFT, 1000, 0))
7576
handle_err(PiGPIO.hardware_PWM(p, PWMB_RIGHT, 1000, 0)) # use 1kHz pwm for the motor drivers
77+
println(Core.stdout, "pwm startup done")
7678
imu_bus = PiGPIO.i2c_open(p, 1, 0x68)
77-
imu = MPU6000(p, imu_bus, GyroRange.GYRO_FS_250, AccelRange.ACCEL_FS_2G)
79+
println(Core.stdout, "i2c startup done")
80+
imu = MPU6000(p, imu_bus, GyroRange.GYRO_FS_250, AccelRange.ACCEL_F_2G)
7881
wake!(imu)
82+
println(Core.stdout, "imu startup done")
7983
timu = ThreadedMPU6000(imu)
8084
tenc_1a = ThreadedEncoder(Encoder(p, M1A), 1_000)
8185
tenc_2a = ThreadedEncoder(Encoder(p, M2A), 1_000)

0 commit comments

Comments
 (0)