Commit Graph

157 Commits (8fa363e44e40c6a3b8e53d4bfbd49bee32fc6ba3)

Author SHA1 Message Date
EmaMaker f3eed47a67 camera: translate camera points in raw data, not in position system 2021-05-11 15:20:20 +02:00
EmaMaker 714b00ee25 robocup preparation: fix lines
add a workaround for when we don't see either of the goals
add nice startup sounds
2021-05-10 20:34:26 +02:00
EmaMaker 082e7effcf preparation for romecup: refine striker 2021-05-10 18:28:41 +02:00
EmaMaker 9321e6ff0b we now have a roller 2021-05-07 21:44:50 +02:00
EmaMaker e71c49efd1 camera: coords filtering and better route calculation 2021-04-19 19:16:31 +02:00
EmaMaker 3ebe64555b tilt: better tilt 2021-04-19 19:14:51 +02:00
EmaMaker 5e88a21293 sensors: add the robot identifier switch
and add test for switches
2021-04-19 16:05:42 +02:00
EmaMaker 686c35b85f position system camera & motors: proper vector sum, value tweaking 2021-04-14 15:00:43 +02:00
EmaMaker 3308c26ef4 striker: robot tilt towards the goal when attacking
Although without a roller the robot just sky-rockets the ball away when they come in touch
2021-04-14 14:58:15 +02:00
EmaMaker 95a601f030 keeper: small value tweaking 2021-04-14 14:57:08 +02:00
EmaMaker db26808344 test menu: complete refactor
and add camera tilt test
2021-04-14 14:54:49 +02:00
EmaMaker 325656d810 ball sensor: ball angle in absolute space 2021-03-29 15:44:19 +02:00
EmaMaker f26cbf4984 movement: enable vector sum for multiple movements in a single cycle 2021-03-22 14:03:53 +01:00
EmaMaker 0aeb92ac27 positionsys camera: introduce an easy way to counter act bad mirror positioning
This allows to define each point relative to the absolute center of the field shifting each Move Setpoint by a defined user-calibrated amount
2021-03-01 21:47:10 +01:00
EmaMaker 2000c8be0b add a missing pragma once 2021-03-01 21:47:10 +01:00
EmaMaker 7deaeff7c0 holon movement: recalculate max possible velocity
The velocity has been calculated by using the holon movement formulas in an excel spritesheetand and empirically tested to find a suitable value
2021-03-01 21:45:32 +01:00
EmaMaker 71cf8ff249 motors: complementary filter on a per-motor speed
avoid all the cons of bang-bang without spending 5mS ramping up and down
2021-03-01 21:45:26 +01:00
EmaMaker 666d628488 sys-camera: a bit of recalibration 2021-03-01 18:37:44 +01:00
EmaMaker b657d88846 striker: use striker based on old Latino's code 2021-03-01 18:37:42 +01:00
EmaMaker 019831e237 remove old unused line systems 2021-03-01 18:36:47 +01:00
EmaMaker 004c4a47de motors: ramp up and slow down of motors instead of bang.bang 2021-02-22 18:43:43 +01:00
EmaMaker a4be313e96 do not initialize LEDs
LEDs are hookep up to the AtMega32U4on the new board
Some LED pins are hooked up to line sensors on the new board and caused them not to work properly
2021-02-01 20:57:23 +01:00
EmaMaker 61b82c4f50 pins: update buzzer and switches pins 2021-01-31 18:43:25 +01:00
EmaMaker aaa883b250 roles: go back to normal striker 2021-01-31 18:42:32 +01:00
EmaMaker dcdb5ac9d3 camera: update scripts, line and position handling for H7 2021-01-31 18:42:03 +01:00
EmaMaker 62821341b0 strategy: introduce a test striker with empty systems and set as only role 2021-01-11 15:46:39 +01:00
EmaMaker f4863eab06 pid: recalibrate pid 2021-01-11 15:44:33 +01:00
EmaMaker b4bc48b9ed systems: introduce empty systems for testing purposes 2021-01-11 15:44:33 +01:00
EmaMaker b17e54ae27 Merge branch 'master' into newcode 2020-11-23 16:54:57 +01:00
EmaMaker 2354015201 reorder files into system folders
also rename Goalie to Striker because GRAMMAR

(Goalie actually means keeper but we always intended it as a striker :D)
2020-11-04 17:46:22 +01:00
ema.coletta@gmail.com c0b8771c47 a bit of recalibration for everything for the presentation game 2020-10-31 15:37:38 +01:00
ema.coletta@gmail.com 304610e2e2 recycle striker strategy from last year code
bad translation, goalie is actually a striker
2020-10-29 17:20:36 +01:00
u-siri-ous beb9133b4b removed data_source_us.h/.cpp, no US present on the 2021 robot, if needed, the files can be found in branch master 2020-05-05 18:13:14 +02:00
u-siri-ous e341214905 first commit, starting to work with a new setup 2020-05-05 17:57:43 +02:00
EmaMaker 49a5689443 Merge 2020-03-12 12:13:25 +01:00
EmaMaker f62d013675 position system camera and vector sum system to do multiple movements in a single one. obv to be tested, but it's difficult without robot and field 2020-03-12 12:09:13 +01:00
u-siri-ous baf834d6c3 aaaaaaa 2020-03-12 11:15:46 +01:00
u-siri-ous 01f0ad70a1 looking at past days' work 2020-03-12 11:14:13 +01:00
EmaMaker 4cd4b8f9d6 merge 2020-03-09 17:34:14 +01:00
EmaMaker b891d8c803 edits in camera 2020-03-09 17:10:22 +01:00
u-siri-ous d06b553f15 added testMenu, to be tested 2020-03-03 11:52:39 +01:00
EmaMaker dddbbc1810 Corrected a few major bugs in camera data receiving and using. Still no lock trying to directly fix goals' coordinates using axis rotation formula. 2020-03-02 20:45:48 +01:00
u-siri-ous 4e0ae43573 camera lines 2020-03-02 18:48:29 +01:00
u-siri-ous cefd106a5e organized code in 5 folders, left vars.h and main.cpp out of them for easy changing purposes. also did two currently_unused folder in sensors for us and things soon-to-be taken out from the robot (like v-shaped mirror) 2020-02-29 22:10:53 +01:00
EmaMaker 9afd6bf8b6 camera working 2020-02-28 16:45:28 +01:00
EmaMaker 00f6192255 now the robot can use the camera to recenter even when one the goals can't be seen 2020-02-27 17:30:10 +01:00
EmaMaker 752866de32 centering with camera only when both goals seen. Using a pid for each axis and then converging the outputs in an angle. This could be possibly done with multiple movements in a single loop and then merged together in a single one. 2020-02-26 20:07:14 +01:00
EmaMaker 33bdb4462a complementary filter object 2020-02-26 18:56:39 +01:00
u-siri-ous 3c34a71676 camera pid testing 2020-02-26 18:51:46 +01:00
EmaMaker e0c7c569f6 aaaaaaaaaaaaaaaaA 2020-02-26 16:00:26 +01:00
EmaMaker 42d73d7e85 New conic shaped mirror, works better. It's higher and has more noticeable changes on the y axis 2020-02-21 13:37:32 +01:00
EmaMaker 2ac684220f best pid YET 2020-02-19 17:44:31 +01:00
EmaMaker f2903c2c6b Now using status vector everywhere :D (To be tested) 2020-02-18 09:37:36 +01:00
EmaMaker 0d5ce9576c Now using Flavio's PID Library, plays flawlessly 2020-02-17 19:47:51 +01:00
EmaMaker 75711e6f28 Now using Flavio's PID Library, plays flawlessly 2020-02-17 19:16:29 +01:00
EmaMaker 64db5d2688 slight edits to goalie 2020-02-17 19:14:48 +01:00
u-siri-ous 6aa404465e ema taking over 2020-02-17 18:52:54 +01:00
u-siri-ous 372e6ac02c experimenting with y axis 2020-02-17 18:38:57 +01:00
u-siri-ous f62bb9751f camera recenter (on x axis) working c: 2020-02-17 17:42:58 +01:00
EmaMaker cee576e9c8 now latest complete structs are copied into new ones when updating status vector 2020-02-17 14:34:39 +01:00
EmaMaker 73981ad784 status vector now working better. Still have to fix something 2020-02-12 21:44:00 +01:00
EmaMaker 8634041ecf status vector now working better. Still have to fix something 2020-02-12 21:43:20 +01:00
u-siri-ous 5a9ce6692f not working 2020-02-12 18:53:25 +01:00
EmaMaker fc840b84be corrected a few errors, Furio plays is more precise than ever when playing 2020-02-10 19:55:56 +01:00
EmaMaker 2577cd568c Now using arduino PID library for movements. There probably a better way to use this, but it works for now 2020-02-10 19:48:31 +01:00
EmaMaker 1b2a810ad3 status vector not quite working 2020-02-05 19:46:57 +01:00
u-siri-ous 3c09f031f1 status vector c: 2020-02-05 18:57:11 +01:00
EmaMaker 6acc62c1a3 Fixed camera angle reading from both openmv and teensy. Tilt from goalie kinda working now 2020-01-31 13:35:40 +01:00
EmaMaker df0b37554c reintroduces semi axis locking. Some bug with the lines make the robot stop when it gets on one. Tilt with vshaped mirror reintroduced 2020-01-29 18:56:49 +01:00
EmaMaker e84292568e Angles working? 2020-01-27 17:05:39 +01:00
EmaMaker dc251467bd Calculating angles with the camera, have to be fixed with the 90 degrees offset. Uploading a little teesny <-> atmega32u4 test script for bidirectional relaiable serial communication 2020-01-26 20:13:31 +01:00
u-siri-ous 05399d8557 new goalie c: 2020-01-22 18:51:30 +01:00
u-siri-ous 13134cac99 camera fixing and new goalie(to test) 2020-01-22 16:55:55 +01:00
u-siri-ous 3f6835ac94 aaaaaaa 2020-01-20 18:57:14 +01:00
u-siri-ous 21d14cf878 new protocol for camera 2020-01-20 18:43:51 +01:00
EmaMaker 069e119f15 First camera script for conic shaped mirror 2020-01-15 18:43:08 +01:00
EmaMaker 023d42c868 fixed a major issues with linesystems 2020-01-15 13:55:51 +01:00
EmaMaker 8fffdfd83b first test with new code, plays great 2020-01-13 17:07:26 +01:00
EmaMaker 6a0d660aab reimproted the zone position system 2019-12-26 17:44:58 +01:00
u-siri-ous 4a1ba46f5b started line_system to play properly 2019-12-20 10:33:11 +01:00
EmaMaker c0495a64af position 2019-12-17 09:31:36 +01:00
u-siri-ous f200685ffb started porting bt, corrected smth 2019-12-11 16:29:18 +01:00
EmaMaker 20b3aa1b0c ported goalie and keeper from old code, condtion code working to decide game strategy 2019-12-09 19:08:05 +01:00
u-siri-ous 23794ebc2d strange behaviour. started zenhub for this repo. 2019-12-05 13:31:21 +01:00
u-siri-ous 4e3bf45bcb sbubabub 2019-12-05 12:53:14 +01:00
EmaMaker c3bb06f89d merged code 2019-12-05 11:57:18 +01:00
EmaMaker 39cbeb1e59 Lines not working well, fixed missing initializations that caused the code to crash 2019-12-05 11:53:01 +01:00
u-siri-ous f3e49b2a7a started writing goalie(), kinda dumb but seems to work 2019-12-05 11:50:58 +01:00
u-siri-ous 75610d3dde first trial to follow the ball 2019-12-04 17:25:25 +01:00
Siria c346312bc9 having troubles testing 2019-12-02 17:25:22 +01:00
EmaMaker 9c3ea8d602 US sensors using DataSourceController now working 2019-12-02 14:50:59 +01:00
u-siri-ous 80a01ee00a Finally us working 2019-11-27 17:17:18 +01:00
EmaMaker 5fda4f890b Error compiling, syntax should be better 2019-11-27 15:33:13 +01:00
u-siri-ous 076a14e3e6 finished us, having trouble testing 2019-11-25 17:30:47 +01:00
u-siri-ous b789efc10b started working on the us sensors 2019-11-25 15:31:00 +01:00
u-siri-ous 3d012ac59f added camera 2019-11-18 18:11:26 +01:00
u-siri-ous 7cab3a2820 implemented camera 2019-11-18 17:15:32 +01:00
u-siri-ous d1cb0e41bc aaaaaaaa 2019-11-18 15:50:32 +01:00
u-siri-ous 9547cf935b Using enums instead of ints for transmission protocols 2019-11-18 15:07:46 +01:00
u-siri-ous 46fe1ca4a3 ball, maybe 2019-11-18 14:42:43 +01:00