Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@3:1b7eb426247e, 2019-09-29 (annotated)
- Committer:
- GaspardD
- Date:
- Sun Sep 29 00:43:58 2019 +0000
- Revision:
- 3:1b7eb426247e
- Parent:
- 2:e9d928fd327a
- Child:
- 4:efa207509f63
init esc nouveau chassis ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaspardD | 1:8faddee0e52f | 1 | #include "sm_esc.h" |
GaspardD | 2:e9d928fd327a | 2 | #include "sm_servo.h" |
GaspardD | 0:38b6065539a0 | 3 | |
GaspardD | 3:1b7eb426247e | 4 | int main() |
GaspardD | 3:1b7eb426247e | 5 | { |
GaspardD | 0:38b6065539a0 | 6 | |
GaspardD | 1:8faddee0e52f | 7 | initGPIOs(); |
GaspardD | 1:8faddee0e52f | 8 | init_interruptions(); |
GaspardD | 3:1b7eb426247e | 9 | |
GaspardD | 1:8faddee0e52f | 10 | //init state machines |
GaspardD | 3:1b7eb426247e | 11 | pc.printf("init state machines\n"); |
GaspardD | 3:1b7eb426247e | 12 | |
GaspardD | 3:1b7eb426247e | 13 | init_sm_servo(); |
GaspardD | 1:8faddee0e52f | 14 | init_sm_esc(); |
GaspardD | 3:1b7eb426247e | 15 | |
GaspardD | 2:e9d928fd327a | 16 | |
GaspardD | 1:8faddee0e52f | 17 | while(1) { |
GaspardD | 0:38b6065539a0 | 18 | |
GaspardD | 3:1b7eb426247e | 19 | update_sm_servo(); |
GaspardD | 1:8faddee0e52f | 20 | update_sm_esc(); |
GaspardD | 3:1b7eb426247e | 21 | |
GaspardD | 3:1b7eb426247e | 22 | output_sm_servo(); |
GaspardD | 1:8faddee0e52f | 23 | output_sm_esc(); |
GaspardD | 0:38b6065539a0 | 24 | } |
GaspardD | 0:38b6065539a0 | 25 | } |