-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWM page improvements #400
PWM page improvements #400
Conversation
795c457
to
30cc6c0
Compare
src/SCRIPTS/BF/board_info.lua
Outdated
io.write(f, " i2cRegisteredDeviceCount = "..tostring(i2cRegisteredDeviceCount)..",", "\n") | ||
io.write(f, "}", "\n") | ||
io.close(f) | ||
assert(loadScript("/BF/BOARD_INFO/"..mcuId..".lua", 'c')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be assert(loadScript("/SCRIPTS/BF/BOARD_INFO/"..mcuId..".lua", 'c'))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But actually it should just be assert(loadScript("BOARD_INFO/"..mcuId..".lua", 'c'))
Because we're changing the working directory here
chdir("/SCRIPTS/BF") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scratch that. Looks like the io library doesn't care about the working directory and expects the full path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scratch that too. We just need to make sure that the BOARD_INFO
folder actually exists. Made the folder and added a readme.txt to it to explain what it's there for. Works as expected now.
30cc6c0
to
7e54d5c
Compare
e2bafae
to
d41a79f
Compare
d41a79f
to
51d9267
Compare
Gyro Update
andPID Loop
to the PWM page.Looks like this now