Merge branch 'main' of git.kleiax.de:kleiax/Projektarbeit-Rover into main
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
Added this code in SparkFun_u-blox_GNSS_Arduino_Libary.cpp in the function pushRawData.
|
||||
|
||||
_spiPort->beginTransaction(SPISettings(_spiSpeed, MSBFIRST, SPI_MODE0));
|
||||
digitalWrite(_csPin, LOW);
|
||||
for (uint16_t i = 0; i < numDataBytes; i++) {
|
||||
spiTransfer(dataBytes[i]);
|
||||
}
|
||||
digitalWrite(_csPin, HIGH);
|
||||
_spiPort->endTransaction();
|
||||
@@ -1,26 +0,0 @@
|
||||
ps3.h
|
||||
void ps3ResetGlobals();
|
||||
|
||||
ps3.c
|
||||
void ps3ResetGlobals() {
|
||||
// Own Code
|
||||
is_active = false;
|
||||
ps3_connection_cb = NULL;
|
||||
ps3_connection_object_cb = NULL;
|
||||
ps3_connection_object = NULL;
|
||||
ps3_event_cb = NULL;
|
||||
ps3_event_object_cb = NULL;
|
||||
ps3_event_object = NULL;
|
||||
}
|
||||
|
||||
Ps3Controller.h
|
||||
private
|
||||
void resetGlobals();
|
||||
|
||||
Ps3Controller.cpp
|
||||
void Ps3Controller::resetGlobals() {
|
||||
ps3ResetGlobals();
|
||||
}
|
||||
|
||||
in -> Ps3Controller::begin
|
||||
this->resetGlobals();
|
||||
Reference in New Issue
Block a user