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 ...
jadonk
commented
Apr 14, 2021
| #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)))))))) |
Member
Author
There was a problem hiding this comment.
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.
Member
Author
There was a problem hiding this comment.
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just a draft.