Added A3 debug I/O output when servo is moving.

feature/v281_test
EmbeddedMan 2024-03-10 16:08:25 -05:00
rodzic c10b1baa5d
commit ad75f20dc7
5 zmienionych plików z 4381 dodań i 4366 usunięć

Wyświetl plik

@ -4,9 +4,9 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/D:/Projects/EggBot6-GH/EBB_firmware/app.X/source/UBW.c</file>
<file>file:/D:/Projects/EggBot6-GH/EBB_firmware/app.X/source/ebb.h</file>
<file>file:/D:/Projects/EggBot6-GH/EBB_firmware/app.X/source/ebb.c</file>
<file>file:/D:/Projects/EggBot4-GH/EBB_firmware/app.X/source/UBW.c</file>
<file>file:/D:/Projects/EggBot4-GH/EBB_firmware/app.X/source/ebb.h</file>
<file>file:/D:/Projects/EggBot4-GH/EBB_firmware/app.X/source/ebb.c</file>
</group>
</open-files>
</project-private>

Wyświetl plik

@ -324,6 +324,10 @@ void low_ISR(void)
// we add (or subtract) gRC2Rate[] to try and get there.
if (gRC2Target[gRC2Ptr] != gRC2Value[gRC2Ptr])
{
#if defined(GPIO_DEBUG)
TRISAbits.TRISA3 = 0;
LATAbits.LATA3 = 1;
#endif
// If the rate is zero, then we always move instantly
// to the target.
if (gRC2Rate[gRC2Ptr] == 0)
@ -378,6 +382,10 @@ void low_ISR(void)
// Re-enable interrupts
INTCONbits.GIEH = 1;
#if defined(GPIO_DEBUG)
LATAbits.LATA3 = 0;
#endif
}
}

Wyświetl plik

@ -55,7 +55,7 @@
#define DEBUG_VALUE_PRINT
// Define this to turn on some GPIO pin timing debug for stepper commands
//#define GPIO_DEBUG
#define GPIO_DEBUG
// These are used for Enable<X>IO to control the enable lines for the driver
#define ENABLE_MOTOR 0