fix gamepad access pointer
This commit is contained in:
+1
-1
@@ -84,7 +84,6 @@ void setup() {
|
|||||||
Network::setIps();
|
Network::setIps();
|
||||||
Network::setupMQTT();
|
Network::setupMQTT();
|
||||||
wifiIsActive = Network::connectWifi();
|
wifiIsActive = Network::connectWifi();
|
||||||
driveManager = new DriveManager(&moveController, gamepad, wifiIsActive);
|
|
||||||
if (wifiIsActive) {
|
if (wifiIsActive) {
|
||||||
|
|
||||||
// const char* remoteHost = "www.google.com";
|
// const char* remoteHost = "www.google.com";
|
||||||
@@ -111,6 +110,7 @@ void setup() {
|
|||||||
std::cout << "All actions from the main program run on Core -> " << xPortGetCoreID() << std::endl;
|
std::cout << "All actions from the main program run on Core -> " << xPortGetCoreID() << std::endl;
|
||||||
|
|
||||||
gamepad = new Ps3Controller;
|
gamepad = new Ps3Controller;
|
||||||
|
driveManager = new DriveManager(&moveController, gamepad, wifiIsActive);
|
||||||
configureController();
|
configureController();
|
||||||
|
|
||||||
outputBuf->activateMqtt(false);
|
outputBuf->activateMqtt(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user