Commit Graph

74 Commits

Author SHA1 Message Date
Devoalda a022c74981 Magnetometer Update + Car turning Update 2023-11-09 17:41:45 +08:00
Devoalda 9e391da487 Amended Magnetometer to use global struct 2023-11-09 23:24:45 +08:00
Richie 034ccb47e5 pending dodge test 2023-11-09 15:16:50 +08:00
Richie 6ac564ee04 direction update 2023-11-09 14:58:35 +08:00
Richie 546f340f52 everything working, somehow 2023-11-09 14:02:58 +08:00
Devoalda 4761893cd9
Added Car config (#16)
* Ultrasonic Sensor + Car init obs struct

* Line sensor update for integration

* ultrasonic update for integration

* Integrate Line and Ultraman

* Added Car config

---------

Co-authored-by: xypoon <2837264P@student.gla.ac.uk>
2023-11-09 05:26:35 +00:00
Richie b7a0f60d8d Merge remote-tracking branch 'origin/main' 2023-11-09 13:20:45 +08:00
Richie da028e41b1 update comments 2023-11-09 13:20:36 +08:00
Devoalda 1b8bcfefae
Integrate Line and Ultrasonic sensor for obstacle detection (#15)
* Ultrasonic Sensor + Car init obs struct

* Line sensor update for integration

* ultrasonic update for integration

* Integrate Line and Ultraman

---------

Co-authored-by: xypoon <2837264P@student.gla.ac.uk>
2023-11-09 05:20:11 +00:00
Richie 107a142ef6 remove debug prints 2023-11-09 12:58:10 +08:00
Richie e9511eb8ce updated vtask and init 2023-11-09 12:57:26 +08:00
Richie 0a62f7738c use minimum global variables 2023-11-09 11:38:20 +08:00
Richie 191c8686c0 push every thing 2023-11-08 17:09:01 +08:00
Richie b52685d25e add direction calculation 2023-11-08 17:07:35 +08:00
Richie a066bd06a6 add redeclare prevent 2023-11-08 15:11:42 +08:00
Devoalda f78fb7973d
Merge branch 'L4ncelot-R:main' into main 2023-11-08 14:11:11 +08:00
Devoalda f65c0ab189 fix(Magnetometer): Added option for calibration 2023-11-08 14:09:54 +08:00
Richie f284f972d2 PID final 2023-11-08 14:00:47 +08:00
soapysoltionss 57683829ae Merge branch 'main' of https://github.com/soapysoltionss/freeRTOS-car 2023-11-07 13:08:15 +08:00
soapysoltionss 678aa00ecc update methods and added bar width detection 2023-11-07 12:48:19 +08:00
Devoalda 585f797460
Merge branch 'L4ncelot-R:main' into main 2023-11-07 10:03:11 +08:00
Devoalda d0553b6ddb fix(Magnetometer):
Added filter for magnetometer outliers
2023-11-07 10:02:09 +08:00
Richie b02919bf1b add turn to yaw function (pending test) 2023-11-07 09:35:15 +08:00
Richie c19b665e0b update PWM and PID value 2023-11-06 23:46:47 +08:00
Richie 389c4ecd92 add function to revert wheel direction 2023-11-06 20:45:42 +08:00
Devoalda f933d8ea91 fix(Magnetometer):
Removed Com Filter
2023-11-04 13:38:47 +08:00
Richie 4137d4f350 updated motor with testing codes with line sensor 2023-10-31 21:52:09 +08:00
soapysoltionss 2d0f17a4bc Revert "add direction control"
This reverts commit ed3c440ebc.
2023-10-31 15:45:37 +08:00
soapysoltionss 2a38789890 barcode 2023-10-31 14:34:45 +08:00
Richie ed3c440ebc add direction control 2023-10-30 23:24:58 +08:00
Richie 2bf8d625ac Merge remote-tracking branch 'origin/main' 2023-10-30 23:20:30 +08:00
Richie ed516b5ce4 add direction control 2023-10-30 23:20:15 +08:00
OldManSteve 5cb4fae0c9 frontend first push 2023-10-30 11:03:55 +08:00
Richie f176192dce PID 99%, suspect wheel issue as if I swap the wheels the car slants opposite direction, for a bit; but generally straight for about 1m, should be enough for the map 2023-10-29 20:26:13 +08:00
Richie e8f8d31b85 pending PID tuning; now car moves in S shape 2023-10-29 17:54:33 +08:00
soapysoltionss 19d6512639 barcode update 2023-10-29 15:46:20 +08:00
Richie Wang 05b5872a6c
Merge pull request #7 from Devoalda/main 2023-10-28 15:51:25 +08:00
xypoon 242b063737
Merge branch 'L4ncelot-R:main' into main 2023-10-28 14:04:52 +08:00
xypoon 460394720d Ultrasonic added Callibration 2023-10-28 14:04:07 +08:00
Devoalda c3b7647422 Merge remote-tracking branch 'origin/main' 2023-10-27 19:54:30 +08:00
Devoalda 9ae974deab fix(Magnetometer):
Fixed Yaw Calculation
2023-10-27 19:54:22 +08:00
Devoalda 54b7cd1057
Merge branch 'L4ncelot-R:main' into main 2023-10-27 19:53:49 +08:00
Richie 8cd0cd9571 update struct names 2023-10-27 13:11:41 +08:00
Richie a40fa548c3 update struct and pid for both wheels 2023-10-27 13:07:55 +08:00
Devoalda 5c70e4d1b7 fix(Line sensor):
Changed line sensor task
2023-10-26 17:09:25 +08:00
Devoalda 237e370875 feature(LSM303DLHC): Added Temperature Compensation
Added:
- Temperature reading
- Temperature compensation for yaw
- Modified Alpha to put more weight on magnetometer
2023-10-26 07:55:43 +08:00
Devoalda 0f0b0a9886 refactor(LSM303DLHC): Converted functions to static functions 2023-10-25 21:11:35 +08:00
Devoalda e0c85ce2ce feature(LSM303DLHC Sensor):
Using both Accelerometer and magnetometer to do a complementary filter to calculate the compass direction.
Added more fine-grained directions (NW, NE, SE, SW)
2023-10-25 20:46:13 +08:00
Devoalda 972cd4240d Merge remote-tracking branch 'origin/main' 2023-10-25 17:02:48 +08:00
Devoalda 32bad31564 feature(LSM303DLHC Sensor):
Added:
- Accelerometer Sensor Data
- Magnetometer Sensor Data
- Compass Direction
2023-10-25 17:02:38 +08:00