f3ffb73b62
Copy code from flash to ram in order to not use XIP allowing writing to flash memory while both cores are running; Motor control now operates with two states/modes; Extended Default CV Range to 1024 - refers to NMRA/RCN standards
gab-k2024-01-05 00:37:21 +01:00
577bc5dd5c
Merge branch 'main' into dev
gab-k2024-01-03 12:05:45 +01:00
e0c0424f87
Refactor Motor PWM init and ADC init; Added doxygen documentation for some functions; Changed some settings in Doxyfile
gk6394s2024-01-02 16:10:00 +01:00
8fb10e212e
Simplify get_speed_step_table_index_of_speed_step(); Removed unnecessary parameter from adjust_pwm_level function; Removed some redundant else statements and redundant "== true" from some expressions; Fixed reset_message_check() function; Added const to some function parameters and local variables;
gk6394s2024-01-02 12:56:25 +01:00
9ee13b67e7
Merge local branch 'changes' into main.
gab-k2024-01-01 21:55:27 +01:00
df9b0ba633
Reformatting and renaming some functions; replaced get_direction() with get_direction_of_speed_step() in order to simplify handling of direction; additional explanation comment in CV.h; add doxygen config file;
gab-k2024-01-01 19:21:47 +01:00
8877e4862d
disable logging by default, added comments how to enable it and what are the consequences
questor/Inter2023-05-12 21:05:48 +02:00
995dca15c8
more debug printfs, disabled function usage of gpio0/1, disabled usb interface to save some 25kb in the firmware image
questor/Inter2023-05-08 22:50:19 +02:00
15a46b9dee
- added files for documentation - fixed undesired behaviour for direction change while decelerating - adjusted default value for CV_54 & CV_55
v0.1
1nct2022-08-06 11:01:29 +02:00
0219963dd7
- Minor changes to variable names, comments & formatting - Removed obsolete parameter previously used in program_mode - Added correction constant regarding base pwm measurement - Revised GPIO definitions (shared.h)
1nct2022-08-03 19:19:14 +02:00
1cb5ddbae0
- Added long address svg - Direction is now preserved on packet timeout - Address > 127 can no longer be written to flash as it is not valid
1nct2022-08-02 15:02:45 +02:00
c8eece795f
- Added and updated svg files used in docs - minor change in speed_table calculation
1nct2022-08-01 21:28:06 +02:00
fd017ea685
- added shared.c file containing functions that can be accessed from both cores - revised CV programming especially writing - Core 1 is only started when valid package with correct address is received - Extended addresses are now correctly verified and implemented - Base PWM measurement is now done on core0 and checked for automatically in cv_setup_check() - Moved Motor PWM, GPIO, ADC to core0 - Implemented inverted direction mode (CV_29) according to DCC-Standards - Limited feed-forward parameters y_2 to max_output/y_1 - k_p gain slopes are now calculated on initialization - k_p gain parameters are also in pid parameter struct now - Revised init_pid() - Implemented Packet timeout check (CV_11) - 16Bit and 32Bit CVs now always have the highest bytes as the lowest array index to accommodate get_XXbit_CV() functions
1nct2022-08-01 17:20:05 +02:00
f09c4ff136
- Reduced amount of global variables. Many variables are now initialized in main() and core1_entry() respectively and then passed as pointer. - Updates in speed steps are passed via multicore fifo. - Pointer to direction variable is also passed from core1 to core0 via multicore fifo - PID parameter struct definition moved to core1.h - Implemented variable Proportional gain function - Implemented function to determine base pwm level - Minor changes regarding variable names - Added more comments to roughly describe functionality of functions
1nct2022-07-28 14:33:48 +02:00
15f67f6c8c
Change to Pin assignements in shared.h
1nct2022-07-18 13:33:42 +02:00
9e68c5b3ec
AUX GPIO are now 24-27, ADC GPIO are now 28 and 29 DCC_IN is now 21 - Board Revision is now "0.3" - Omitted Rev. in Kicad filenames
unknown2022-05-02 20:39:42 +02:00
ad570fba35
- remove m_pwm_offset_adjustment; - offset now adjusted in pid_control loop; - pid sampling time depends on speed step; - speed table implemented & and init function;
1nct2022-03-12 10:23:51 +01:00
330d42a17e
- changes to ADC offset adjustment; - changes to output set function; - cv_setup_check() now waits for core1 to launch also after programming
1nct2022-03-06 01:03:17 +01:00