miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
Function manual / 函数手册

Introduction / 简介

    This GitHub page is automatically generated by Doxygen according to code comments. It describes the purpose, function and usage of functions, variables and structures in each file except the library functions provided by gd32. You can click the "file - > file list" button at the top of the page to jump to the file list to view the description of the variables and functions declared in the relevant files.

    本Github Page由Doxygen根据代码注释自动生成,描述了除了GD32提供的库函数外的每个文件中函数、变量与结构体的用途、功能和用法。你可以通过点击页面上方的“File -> File List”按钮跳转到文件列表以查看相关文件内部声明的变量和函数的说明。

Download and Description / 下载与描述

    The content published below is the. Hex firmware generated by GitHub action scheduled task every time. The purpose is to automatically compile and publish the latest committed firmware under the main branch without manual compilation by the developer. It should be noted that the. Hex firmware on this page does not guarantee its stability and availability. If you want to download stable and available firmware, please go to the Release Page to download it.

    下面发布的内容是每次由Github Action定时任务生成的.hex固件,目的是自动编译发布main分支下最新commit的固件而无需开发者手动编译。需要注意的是,本页面下的.hex固件不保证它的稳定性和可用性。如果你想下载稳定可用的固件,请转到Release页面下载。 

  • 20220801: abed215 Add SVPWM modulation code, which can be controlled by using macros.
  • 20220524: dd0dbc8 Update cmake.yml
  • 20211108: df8533c Change the automatic compilation workflow to run only when the push event occurs.
  • 20211107: bb8409a Update new firmware link to Github Pages
  • 20211106: 62c17af Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20211105: 08164bb Merge remote-tracking branch 'origin/main' into main
  • 20211104: 6a5dcd3 Added the button and method of flash writing content control. There are still problems with parameter reading and slider display that need to be modified.
  • 20211103: ef97f44 Update new firmware link to Github Pages
  • 20211102: b5687f6 Update new firmware link to Github Pages
  • 20211101: c459ea9 Update new firmware link to Github Pages
  • 20211031: 8e82bd1 Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20211030: 8c464a0 Delete a piece of wire floating in the PCB. Generate and update coordinate files and Gerber files.
  • 20211029: c5ee9a1 Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20211020: e1f4f51 Modify the GitHub action timed automatic compilation firmware to compile only when push occurs.
  • 20211012: 5aa44fc Merge remote-tracking branch 'origin/main' into main
  • 20211011: 22d07b8 add two lables in monitor
  • 20211010: 7520c1e Modify the main page of Doxygen generated documents to readme file as the main page.
  • 20211009: 1fdb661 Modify most of the files in the algorithm folder to a format recognized by Doxygen.
  • 20211008: 96d4344 Update new firmware link to Github Pages
  • 20211007: e1db21f Update new firmware link to Github Pages
  • 20211006: 8ff27a8 Update new firmware link to Github Pages
  • 20211005: 9e18ca4 Update new firmware link to Github Pages
  • 20211004: 9ad907a Correct the medium capacity data transfer protocol link in README.
  • 20210930: 62079a2 Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20210929: 0ad9f00 Add comments for PID program.
  • 20210928: 6c3f43f Update new firmware link to Github Pages
  • 20210927: 4ef3bf9 Update new firmware link to Github Pages
  • 20210926: 13c4a77 Add the slider position and the maximum and minimum value change code for the monitor. Now the parameters of the motor can be parsed and reflected on the slider.
  • 20210925: 4c8ae1b Update new firmware link to Github Pages
  • 20210924: 00c7781 The problem of sending messages after the monitor is started has been solved. The problem of enabling logic of slider control in monitor is solved.
  • 20210923: bfeb755 Add the variable return function to sort out the uploaded functions into the report. C file.
  • 20210922: f3c4b4f Modify the development environment version in readme and add notes for the image repo.
  • 20210921: 5607792 Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20210920: 06330fe Correct the FOC twice coordinate transformation annotation.
  • 20210919: 626c4fb Modify the global variable name so that it does not duplicate.
  • 20210918: 35eb651 Modify README and update mainwindow.ui of monitor
  • 20210917: b5a9140 Update new firmware link to Github Pages
  • 20210916: 813b97e Add speed update configure macro to config.h.
  • 20210914: 975d112 Update new firmware link to Github Pages
  • 20210913: 3207bc9 The PCB circuit of minifoc is modified
  • 20210912: 43bdf80 Fixed the problem that the reverse speed could not be measured during speed calculation.
  • 20210911: 610eeb6 Add a comment for timer deactivation.
  • 20210910: 97ade83 Modify the packet serial port sending function, and now you can send data correctly.
  • 20210909: 9216fd7 Add upper computer monitor tools for miniFOC
  • 20210908: 0eef12c Normalize variable names and adjust the order.
  • 20210907: 238b89d Fix mdtp_callback_handler function name mismatch.
  • 20210906: 791bb85 Normalized FLASH read / write function name.
  • 20210905: be1d8fa The speed calculation code and sliding window filter function are added to make the speed smoother.
  • 20210904: 84aa5d8 Polish README
  • 20210903: ebb2498 The electric angle correction program is added. The pole number and encoder resolution are added to the config file for modification. Corrected PWM initialization duty cycle to prevent power on burn out.
  • 20210902: 21ed3dd Add read and initialization functions of magnetic encoder. Add comments for SPI related functions and move SPI frequency division coefficient to config file for configuration.
  • 20210901: 2698c41 Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20210831: 2d309e9 Code comments are added for fast mathematical calculation functions and FOC calculation functions.
  • 20210830: 021d7fa The fast mathematical calculation function is added to accelerate the calculation speed of sin and cos calculate, and the program volume is reduced (compared with using math Standard Library).
  • 20210829: 1e40d66 Add and update PWM duty cycle function. Add comments for PWM initialization function and modify initialization channel.
  • 20210828: 0a068b2 Add wiki repo into docs directory
  • 20210827: 924f307 Merge branch 'main' of github.com:ZhuYanzhen1/miniFOC into main
  • 20210826: dfea67b Add the packet function of medium capacity transmission protocol. When the data packet is received, it is sent back according to the original packet to test whether the function of receiving and sending data packet can operate normally.
  • 20210825: 0e68071 Some data receiving functions are realized. Annotate the functions in the system file. Fixed missing systick handler. The memset function is rewritten, and the program volume can be reduced without using the standard library.
  • 20210824: 1b1fd54 Add UART0 initialization code, file author declaration, function declaration and code comments. Add config header file to facilitate users to modify important parameters.
  • 20210823: c774ad1 Add macro definition of LED level toggle.
  • 20210822: c625232 Delete testing files