Closed Bharat-Ramadas closed 2 years ago
@Bharat-Ramadas before merging this, you'll also need to update the docs website page to add instructions on how to use this injection function type.
@Bharat-Ramadas before merging this, you'll also need to update the docs website page to add instructions on how to use this injection function type.
Shouldn't we merge this in first before adding in instructions in the docs page?
My plan is to merge at the same time, so hold off on clicking merge on this PR here until the docs are ready to be merged
In reality, we should probably wait until this gets merged to the release branch v1.0.x
before we merge the docs update.
The new commits now resolve #267
Ensure this is merged with a Squash and merge
into develop
This PR addresses issue #261 by adding a
ramp
function tosys/injection.c
, along with all the supporting functions that go with it. Will be useful to emulate encoders while testing with hardware.The code was tested on an AMDC RevD board to prove that it indeed does work as expected. In order to test out this functionality, the injection command was logged on the AMDC. The command passed to the AMDC was
inj ramp theta* set 0 360 0.1
. The resultingtheta*
waveform, logged at 1 kHz, is shown below.