Commit Graph
20 Commits
Author SHA1 Message Date
gk6394s e0c0424f87 Refactor Motor PWM init and ADC init; Added doxygen documentation for some functions; Changed some settings in Doxyfile 2024-01-02 16:10:00 +01:00
gab-k 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; 2024-01-01 19:21:47 +01:00
gab-k 52ec79105d Revert changes to LOG macro 2023-12-30 15:37:38 +01:00
r3drock 992d6ae800 always append a new line to log 2023-12-23 17:58:42 +01:00
questor/Inter 36f20a8ca3 some more comments 2023-05-27 22:04:56 +02:00
questor/Inter 8877e4862d disable logging by default, added comments how to enable it and what are the consequences 2023-05-12 21:05:48 +02:00
questor/Inter 995dca15c8 more debug printfs, disabled function usage of gpio0/1, disabled usb interface to save some 25kb in the firmware image 2023-05-08 22:50:19 +02:00
questor a0408c28ed some refactoring 2023-04-27 15:53:59 +02:00
1nct 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)
2022-08-03 19:19:14 +02:00
1nct 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
2022-08-01 17:20:05 +02:00
1nct 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
2022-07-28 14:33:48 +02:00
1nct 15f67f6c8c Change to Pin assignements in shared.h 2022-07-18 13:33:42 +02:00
1nct 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;
2022-03-12 10:23:51 +01:00
1nct 65250846f9 - improved PIN_MASK definitions; -implemented adc offset adjustment; - implemented startup checks for: factory flash setting, adc offset adjustment, motor offset adjustment; - implemented adc_offset CVs; - implemented CV_65 as indication for flash factory condition; -fixed core0.h 2022-03-05 14:46:48 +01:00
1nct a6fa9ef249 -updated readme, -modified F0-F31 handling, - implemented pwm for F0-F31 2022-03-05 01:41:40 +01:00
1nct 2cad01370c - implemented linear approximation for pwm duty cycle offset (feed forward)
- changed pid params and variables in measure() from float to integers
- implemented Motor PWM Frequency CV
- improved acknowledge() function ( 3ms forward / 3ms reverse )
- moved automatic offset setup to speed step evaluation
- removed zener diode correction
- some minor changes regarding naming of constants
2022-02-23 02:15:12 +01:00
1nct cdb68b84da added startup offset to establish a baseline duty cycle at which the motor starts to spin 2022-02-20 11:32:03 +01:00
1nct 4d073dd7f7 - Changes to sorting in measure() function
- Changes to Zener Voltage Correction /  measure now returns value in volts
- Changes to Motor control
- Resistor values changed
- Created BOM
2022-02-16 10:45:30 +01:00
1nct 594f693b9f - Correction for Zener Diode Voltage
- Changes to Header Files
2022-01-27 01:09:06 +01:00
1nct ebdc57e90a - divided decoder.c in core0.c & core1.c
- improvements on set_outputs()
2022-01-09 11:30:32 +01:00