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
- Committer:
- evgeniik
- Date:
- 2020-09-16
- Revision:
- 1:677bc036cafe
- Parent:
- 0:4124015d9872
File content as of revision 1:677bc036cafe:
#include "Hydra.h"
#include "Empty.h"
using namespace std;
int main() {
///////////////
//
// Config
//
///////////////
Hydra::add_config_param("CAN_ID", "0x07A");
Hydra::add_config_param("NAME", "Moteur");
Hydra::add_config_param("POSITION", "1");
Hydra::get_config_param("POSITION"); //1
Hydra::hydra_init(PA_11, PA_12);
Empty();
while (1){
Hydra::check_command_line_argument();
}
}