Skip to content

Commit

Permalink
update firmware branch
Browse files Browse the repository at this point in the history
  • Loading branch information
katakurashohei committed Oct 16, 2024
1 parent 41f9006 commit fe5afeb
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .idea/dualpanto-testing.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions firmware/encoder_driver/.pio/build/project.checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
968caab0725b5d8599713d5369e9249d4c607f65

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions firmware/haptics/line wall/firmware/src/physicsMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ void physicsSetup()

std::vector<Vector2D> path;
// render line wall
path.emplace_back(-40.0f, -70.0f);
path.emplace_back(40.0f, -70.0f);

path.emplace_back(-100.0f, -70.0f);
path.emplace_back(150.0f, -70.0f);
// path.emplace_back(-20.0f,-35.0f);
// path.emplace_back(-20.0f,-70.0f);
// path.emplace_back(20.0f,-70.0f);
// path.emplace_back(20.0f,-35.0f);
auto id = 1;
pantoPhysics[i].godObject()->createObstacle(id, path, false);
pantoPhysics[i].godObject()->enableObstacle(id, true);
Expand Down
4 changes: 2 additions & 2 deletions firmware/hardware/linkage encoder/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description = Dual Panto firmware
platform = [email protected]
framework = arduino
board = esp32dev
#monitor_speed = 115200
monitor_speed = 9600
monitor_speed = 115200
;monitor_speed = 9600
build_flags=
-mtext-section-literals
lib_deps = https://github.com/PaulStoffregen/Encoder.git
Expand Down
2 changes: 1 addition & 1 deletion firmware/hardware/linkage encoder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ uint16_t buf = 0;

void setup()
{
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
Serial.begin(115200); // opens serial port, sets data rate to 9600 bps

pinMode(13, OUTPUT);
pinMode(c_hspiSsPin1, OUTPUT);
Expand Down
3 changes: 2 additions & 1 deletion test_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@ def test_BIS_week7_kinematics(self):

class UploadDualPantoFramework(unittest.TestCase):
def test_upload_dp_firmware(self):
res = util.compile_firmware('firmware/dualpantoframework')
res = util.compile_firmware('firmware/dualpantoframework/firmware ')
self.assertEqual(res, 0, msg='failed to compile firmware. please first check platformIO config and installation')

2 changes: 1 addition & 1 deletion test_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_sync(self):

def handle_serial_connection(self):
print("Connecting...")
with serial.Serial(config.COM_PORT, 9600, timeout=1, parity=serial.PARITY_EVEN) as ser:
with serial.Serial(config.COM_PORT, 115200, timeout=1, parity=serial.PARITY_EVEN) as ser:
time.sleep(1)
self.assertNotEqual(ser.inWaiting(), 0,
msg="could not establish serial connection... try restarting the panto")
Expand Down

0 comments on commit fe5afeb

Please sign in to comment.