cleanup demo
This commit is contained in:
7
aerpaw/basic_demo/compile.sh
Executable file
7
aerpaw/basic_demo/compile.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
#g++ -I/home/kdee/matlab/R2025a/extern/include controller_main.cpp controller.cpp controller_impl.cpp -o controller_app -lpthread
|
||||
|
||||
wd=$(pwd)
|
||||
cd /home/kdee/Desktop/miSim/aerpaw/codegen
|
||||
g++ -I/home/kdee/matlab/R2025a/extern/include -I../basic_demo/handcode -I. ../basic_demo/handcode/controller_main.cpp controller.cpp ../basic_demo/handcode/controller_impl.cpp controller_initialize.cpp controller_terminate.cpp -o controller_app -lpthread
|
||||
cd $wd
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <iostream>
|
||||
#include "controller.h" // Generated by MATLAB Coder
|
||||
#include "controller_impl.h" // Your TCP implementation header
|
||||
#include "controller.h"
|
||||
#include "controller_impl.h" // TCP implementation header
|
||||
|
||||
int main() {
|
||||
// Number of clients to handle
|
||||
int numClients = 2; // Example: change as needed
|
||||
int numClients = 2; // for now
|
||||
|
||||
std::cout << "Initializing TCP server...\n";
|
||||
|
||||
Reference in New Issue
Block a user