145 Commits

Author SHA1 Message Date
Jonas Holmberg
440640d8ef Added average function to get the altitude 2016-11-09 10:35:55 +01:00
Jonas Holmberg
d7406cc501 ops 2016-11-08 12:26:19 +01:00
Jonas Holmberg
9024a8d425 Added a full set of comments to the barometer code.
Fully commented the code for the barometer.
2016-11-08 12:26:07 +01:00
Jonas Holmberg
fcc0bd41ae Added some comments.
Added some comments to the barometer code. More will be added.
2016-11-08 09:25:52 +01:00
Jonas Holmberg
195b311b88 Merge remote-tracking branch 'refs/remotes/origin/PID-Improved' into baro2 2016-11-01 09:57:55 +01:00
Jonas Holmberg
606160e1cf test 2016-11-01 09:57:06 +01:00
Jonas Holmberg
83c11bd444 Added miss to the acc calibration 2016-10-31 18:19:44 +01:00
johan9107
dcf36fc542 PID changed buffer to filter 2016-10-31 14:44:34 +01:00
johan9107
f787b19572 PID, deleted overflow code 2016-10-31 11:20:30 +01:00
e6ce36f9e9 Changes to scaling of the I-term. It is now 200 times smaller 2016-10-31 11:18:54 +01:00
johan9107
dab5b5626d PID new test changes, cast I term to float 2016-10-31 09:58:04 +01:00
Jonas Holmberg
e040e35cf6 ops 2016-10-28 14:34:59 +02:00
Jonas Holmberg
0f37f6600d Added calibration for accelerometer 2016-10-28 14:34:49 +02:00
Jonas Holmberg
e1b7a5c2ff Merge remote-tracking branch 'refs/remotes/origin/PID-Improved' into baro2
# Conflicts:
#	UAV-ControlSystem/src/drivers/accel_gyro.c
2016-10-28 10:26:19 +02:00
c57ec51397 Temp fix for eeprom problem 2016-10-28 10:22:42 +02:00
Jonas Holmberg
738dca560f Added I2C soft implementation. Added barometer functionality.
In this commit the the barometer is commented out and is not used in the
system. This part also has athe beginnings of the calibration functions
for accel and gyro
2016-10-28 10:22:13 +02:00
johan9107
428a6140b4 PID added new dweight values 2016-10-28 08:39:05 +02:00
johan9107
3d3d16cead PID added new lowpas filter and average calculations to Accelerometer values 2016-10-27 14:30:26 +02:00
johan9107
c3e969e982 PID Added new values to improve filter 2016-10-27 11:55:16 +02:00
johan9107
69c9f22dad Pid update angle caluclations 2016-10-26 16:22:33 +02:00
Jonas Holmberg
fe18550ca8 Some sort of comm possible using hardware I2C
Can get response by hardware but its not very fast since the setting are
not optimized at all
2016-10-26 15:25:36 +02:00
Jonas Holmberg
ec395d11e0 Working software ic2 barometer
Can read from baro and get temp, preassure and alt. Will look into
optimizations.
2016-10-25 17:10:36 +02:00
Jonas Holmberg
f35617c92d Working communication with the BARO
Not a full implementation just a test that can get conntact with the
BARO and no other calculations are made. This is not using the HAL but
its a software implementation that simly sets pins high and low etc...
2016-10-25 14:23:01 +02:00
johan9107
8b511b1098 Merge remote-tracking branch 'refs/remotes/origin/master' into PID-Improved 2016-10-25 10:19:56 +02:00
76fb5c8128 Motormixer fixed now! The mid mixer does not max out motors anymore (probably not) 2016-10-25 10:13:51 +02:00
johan9107
facfcb7023 PID accelerometer added low pass filter 2016-10-25 10:13:49 +02:00
6bdcb6e853 Some more fixes on mixer. Not working well! 2016-10-25 09:50:35 +02:00
johan9107
6994bcaf11 Merge remote-tracking branch 'refs/remotes/origin/master' into PID-Improved 2016-10-25 09:44:01 +02:00
johan9107
75dadc7484 Chnaged port from usart 3 to 6 on cli 2016-10-25 09:43:38 +02:00
4da4736257 Fix for motormix low. Not tested! 2016-10-25 09:17:58 +02:00
1ef8f56ed6 Changes to acc functionality. OBS! Not working correctly 2016-10-24 17:34:58 +02:00
Lennart Eriksson
8ae24669af Merge pull request #19 from MDHSweden/PID-Improved
Pid improved, approved by Lennart
2016-10-24 14:44:55 +02:00
johan9107
c0cb3ffe17 PID, added correct calculations to accelerometer data
PID, added correct calculations to accelerometer data
2016-10-24 14:37:01 +02:00
1f6bf53f62 Change in calibration. MinCommand set to 990 to be lower than lowest calibration of 1000.
Max calibration is set to MAX_Pulse which is 1950 at this time instead of 2000 which we calibrated with earlier
2016-10-24 11:56:43 +02:00
Jonas Holmberg
7ca3bbec8f Changed some min max values in CLI and changed direction of the GYRO 2016-10-20 18:22:40 +02:00
Jonas Holmberg
e75e8a7089 started calibration fixing 2016-10-20 11:09:35 +02:00
johan9107
ce9d016e81 PID eeprom settings changed to correct index of PID profile
PID eeprom settings changed to correct index of PID profile
2016-10-20 10:42:49 +02:00
Jonas Holmberg
622a61f17f Merge remote-tracking branch 'refs/remotes/origin/master' into baro2 2016-10-20 09:03:02 +02:00
Jonas Holmberg
db48b1235c Ceated new branch for baro 2016-10-20 08:59:30 +02:00
johan9107
7763f73c2c Connected cli and eeprom, and motormix to PID settings
Connected cli and eeprom, and motormix to PID settings
2016-10-19 16:59:48 +02:00
johan9107
8bb27e91fa Improved and added new PID structure
Changed the PID strucutre and added new filters
2016-10-19 14:26:10 +02:00
johan9107
23a19c314b PID changed postion of code
PID changed postion of defines
2016-10-18 17:01:11 +02:00
Jonas Holmberg
7da69bb6c2 small comments 2016-10-18 15:07:29 +02:00
Lennart Eriksson
ea48b3560b Merge remote-tracking branch 'origin/PID' into PID
# Conflicts:
#	UAV-ControlSystem/src/config/cli.c
#	UAV-ControlSystem/src/config/eeprom.c
#	UAV-ControlSystem/src/drivers/sbus.c
2016-10-18 12:20:07 +02:00
Lennart Eriksson
d22c77fc06 Merge remote-tracking branch 'refs/remotes/origin/master' into PID 2016-10-18 12:11:15 +02:00
Jonas Holmberg
238b71b8bc Added some more comments to Failsafe and CLI
General comments added for the failsafe and toggles. Also added
description in CLI.h on the necessary steps to add a new command to the
CLI and how to also add the value it should operate on to the EEPROM.
2016-10-18 11:51:47 +02:00
Jonas Holmberg
dfac730893 Added improvement to AUX command processing
Improved the speed of the processing of aux commands from the rc that
handles various bolean flags in the system. Also added some more
commenting to the failsafe and toggles fiels. Also updated the motor 7
and 8s information in the REVO.h
2016-10-18 11:13:27 +02:00
johan9107
8031d48cb0 PID new rc input
added a new gloabal functions to get rc input from radio (rc_input)
2016-10-18 11:02:23 +02:00
d72e7e099b New mixer mode implemented with low scaling. Renaming of Airmode into Full scale
Implemented new modes in cli
Fixed bugg in motors.c cutting out max value
2016-10-17 14:34:09 +02:00
johan9107
4bb2d6fdaf Merge remote-tracking branch 'refs/remotes/origin/PID_from_eeprom' into PID 2016-10-17 11:59:41 +02:00