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
Mau dylanlamarca #1298
Closed
Closed
Mau dylanlamarca #1298
Conversation
This file contains 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
Created a clone of the "sim" directory, without the MockData subfolder, and named it "mau"
Now the HAL Initializer method creates a new instance of VMXPi(), and then passes pointers to the vmxpi's controller objects (VMXIO, AHRS, VMXCAN, VMXTime, VMXThread, VMXVersion, and VMXPower) to WPI objects which use the controllers cooresponding functions
Replaced passing pointers to the vmx controllers to using global variables
Wrote the first iteration in making the WPI Accelerometer, AnalogAccumulator, AnalogGyro, AnalogInput, and CAN utilize VMX functions
Removed #includes to MockData files in Mau and commented out references to Sim/MockData functionality
Removed #includes to MockData files in Mau and commented out references to Sim/MockData functionality
Replaced the extern "C" that was deleted by mistake
Deleted the Data JNI files from the Mau subdirectory
Refactored the VMXPointers.h file to be called VMXHandler.h, as well as implementing the changes suggested/required
Moved the DriverStation directory from the base directory of allwpilib to the Mau subdirectory
Created two json files. One contains all of the indexes, types, and capabilities of the VMX channels and the other Maps each WPI Channel to a VMX Channel
Relocated the header file that handles VMX functions for the wpi to the new Translator sub-directory of Mau
Created a rough class called Mau_DriveData which should contain all of the information necessary for DriverStation communication through BagelCpp
Added the rapidJson library (https://github.com/Tencent/rapidjson) to the translator subdirectory so it can be utilized to efficiently read the Channel and Enum maps
Include VMXHandler in PWM so we can translate WPI operations to VMX operations
Finished the channel mapping mechanism, made (most of) the mau files buildable, and implemented the channel mapper in PWM
Reorganized the DriverStation subdirectory, changed what DriveData holds, and how DriveData is accessed
Made DriveData utilize BagelCpp fwi structs through a new header file BagelDriveData.h and more
…ilib into Mau.DylanLaMarca
…ilib into Mau.DylanLaMarca
Commented out a number of small oversights which caused build errors in non-vital parts of the HAL, including the entirety of Interrupts because it's a saucy little minxy
Added a number of functions to Mau_DriveData and the BagelDriveData utility to update individual ControlWord booleans and JoystickDescriptors
…ilib into Mau.DylanLaMarca
…libwpiHal.so or any java)
DriverStation now initializes all of the comms. When created it creates the shared instance of DriveData and HAL_WaitForDSData waits for the shared Data's signal, and HAL_InitializeDriverStation starts the BagelCpp's ds_comms threads
…ilib into Mau.DylanLaMarca
****The include files are not all present, the CMakeLists.txt file is correct, but the build environment is not. Until that is updated, FRC applications will not run successfully.
…ilib into Mau.DylanLaMarca
Deleted the Toast shared memory stuff and integrated the structure of ds_comms into DriverStation
Fixed the naming error in Interrupts init and un-commented Interrupts
Changed the const filepaths that the FileHandler uses to locate the json-map files to /maps, which is where cmake will store them with the library
…ilib into Mau.DylanLaMarca
Added declaration of mau::sharedMemory and added undeclared variables
Uncommented all of Extensions.cpp
Relocated testing isDS attached to tcp Thread, Changed Mau_DriveData to return no pointers, but have yet to build and completely test
Changed tests of time recieved from the VMXTime to expect and test in microseconds instead of milliseconds, as well as decreasing the expected sample rate
NOTE: This requires the latest VMXPI-HAL (v. 1.1.148), which contains a new PWM-related API function. - Updated ChannelMap.json and PortsInternal to properly reflect all 22 VMXPi PWM Channels. - Update PWM.cpp to correctly select correct VMXPI PWM Port Index during initialization. - Update PWM.cpp to support "WPI Squelched" outputs, needed for Servo support. - Update HAL.cpp to use modified VMXPi class constructor call (w/realtime flag = true) - Update DigitalInternal.h to support wider range (finer resolution) of PWM Steps - Update Robot.cpp test program to simultaneously test 3 motor controllers and 1 servo.
Pull Request Deleted; this was mistakenly added as pull request to wpilibsuite allwpilib; it is intended for the Kauai Labs allwpilib fork instead. |
This is meant to be in your repo, not here, right @kauailabs ? |
That was an error on my part. Sorry 'bout that, please ignore/discard this
pull request.
…On Sat, Sep 1, 2018 at 12:43 PM Thad House ***@***.***> wrote:
This is meant to be in your repo, not here, right @kauailabs
<https://github.com/kauailabs> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1298 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK65iDU3dvfzJPwjNiTFbC_LRpSG3AKxks5uWw2dgaJpZM4WWZQb>
.
--
Scott Libert - Founder, Kauai Labs
[image: https://www.kauailabs.com] <https://www.kauailabs.com/>
|
pjbuterbaugh
pushed a commit
to pjbuterbaugh/allwpilib
that referenced
this pull request
Jun 15, 2023
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.
This pull request replaces Dylan's previous pull requests. This pull request includes not only the contents of Dylan's previous pull request, but also change added by Scott to ensure proper operation of PWM for Motor Controllers as well as Servos, and updates to the Mau ChannelMap to support all 22 VMXPi channels.