-
Notifications
You must be signed in to change notification settings - Fork 159
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
BeagleBone AI support #203
base: master
Are you sure you want to change the base?
Conversation
These separate main files were just copies of each other and just do the same setup before calling _start. Note that C28 probably does need setup to access the share memory. Note that the OCP is not likely ever accessed, nor should it be enabled. It opens us up to bugs and these modules should be using their own pins and local memories (which the ARM can see without enabling us to reach out).
debian@bbai-donkey1:/opt/source/librobotcontrol/library$ rc_test_servos -s 1 Turning On 6V Servo Power Rail Sending on all channels. Sweeping servos back/forth between +-1.000000 Pulse Frequency: 50 ... bug no movement. Need to get a scope to debug ...
@@ -24,6 +25,7 @@ | |||
#define V_DIV_RATIO 11.0 | |||
#define BATT_DEADZONE 1.0 | |||
|
|||
#define ADC2AI(x) (x==0?0:(x==1?1:(x==2?3:(x==3?2:(x==4?7:(x==5?6:(x==6?4:(x==7?5:-1)))))))) |
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.
This is an ugly hack. Not the desired approach. I need to figure out how to do a better job remapping the channels in a more portable way.
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.
Can we add a series of symlink entries into the device tree to create something like /dev/bone/adc/Px_y? I'd think that would be a better way to handle GPIOs than with the LED drivers like Deepak Khatri did for now.
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.
This is an ugly hack. Not the desired approach. I need to figure out how to do a better job remapping the channels in a more portable way.
can we make ADC2AI(x) an inline function
Just a draft.