We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22c7fa1 commit 4289c66Copy full SHA for 4289c66
1 file changed
deploy/src/main.jl
@@ -71,11 +71,15 @@ end
71
function (@main)(args)::Cint
72
println(Core.stdout, "hello world!")
73
p = Pi()
74
+ println(Core.stdout, "pi startup done")
75
handle_err(PiGPIO.hardware_PWM(p, PWMA_LEFT, 1000, 0))
76
handle_err(PiGPIO.hardware_PWM(p, PWMB_RIGHT, 1000, 0)) # use 1kHz pwm for the motor drivers
77
+ println(Core.stdout, "pwm startup done")
78
imu_bus = PiGPIO.i2c_open(p, 1, 0x68)
- 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)
81
wake!(imu)
82
+ println(Core.stdout, "imu startup done")
83
timu = ThreadedMPU6000(imu)
84
tenc_1a = ThreadedEncoder(Encoder(p, M1A), 1_000)
85
tenc_2a = ThreadedEncoder(Encoder(p, M2A), 1_000)
0 commit comments