From 6c6bf334a49c1fa3fc127e3bda17a5f83a5ded66 Mon Sep 17 00:00:00 2001 From: Ilham Date: Mon, 25 May 2026 18:39:58 -0700 Subject: [PATCH] Add comprehensive test scripts for steering, speed, and brake verification --- Non_grapic_simulator/test_brake.csv | 14 +++++++++++++ .../test_speed_and_steering.csv | 18 ++++++++++++++++ .../test_steering_comprehensive.csv | 21 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 Non_grapic_simulator/test_brake.csv create mode 100644 Non_grapic_simulator/test_speed_and_steering.csv create mode 100644 Non_grapic_simulator/test_steering_comprehensive.csv diff --git a/Non_grapic_simulator/test_brake.csv b/Non_grapic_simulator/test_brake.csv new file mode 100644 index 0000000..fc28d03 --- /dev/null +++ b/Non_grapic_simulator/test_brake.csv @@ -0,0 +1,14 @@ +# Brake Test +# Test braking at different speeds + +# Moving at speed +0,350,6,1500,0,1,0 +1000,350,6,1500,0,1,0 + +# Apply brake +2000,350,6,0,2,1,0 +3000,350,6,0,2,1,0 + +# Coast +4000,350,6,0,0,1,0 +5000,350,6,0,0,1,0 \ No newline at end of file diff --git a/Non_grapic_simulator/test_speed_and_steering.csv b/Non_grapic_simulator/test_speed_and_steering.csv new file mode 100644 index 0000000..b8840aa --- /dev/null +++ b/Non_grapic_simulator/test_speed_and_steering.csv @@ -0,0 +1,18 @@ +# Combined Speed and Steering Test +# Test different speeds with steering + +# Low speed + left turn +0,350,6,500,0,1,-210 +1000,350,6,500,0,1,-210 + +# Medium speed + straight +2000,350,6,1500,0,1,0 +3000,350,6,1500,0,1,0 + +# High speed + right turn +4000,350,6,3000,0,1,210 +5000,350,6,3000,0,1,210 + +# Return to slow + straight +6000,350,6,500,0,1,0 +7000,350,6,500,0,1,0 \ No newline at end of file diff --git a/Non_grapic_simulator/test_steering_comprehensive.csv b/Non_grapic_simulator/test_steering_comprehensive.csv new file mode 100644 index 0000000..ee8d491 --- /dev/null +++ b/Non_grapic_simulator/test_steering_comprehensive.csv @@ -0,0 +1,21 @@ +# Comprehensive Steering Test +# Format: time_ms, CANID, nbytes, speed_cmPs, brake, mode, angle_tenths +# Description: Test left turn, right turn, and return to straight + +# Start: Turn left gradually +0,350,6,1500,0,1,-105 +500,350,6,1500,0,1,-210 +1000,350,6,1500,0,1,-210 + +# Return to straight +2000,350,6,1500,0,1,0 +2500,350,6,1500,0,1,0 + +# Turn right gradually +3500,350,6,1500,0,1,105 +4000,350,6,1500,0,1,210 +4500,350,6,1500,0,1,210 + +# Return to straight +5500,350,6,1500,0,1,0 +6000,350,6,1500,0,1,0 \ No newline at end of file