Skip to content

Commit

Permalink
Improved motor init, it works mostly well, sometimes the init fail an…
Browse files Browse the repository at this point in the history
…d motor do not run
  • Loading branch information
casainho committed Mar 20, 2020
1 parent cbac779 commit 606fedc
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 134 deletions.
9 changes: 0 additions & 9 deletions src/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,4 @@
#ifndef COMMON_COMMON_H_
#define COMMON_COMMON_H_

#define NO_ERROR 0
#define ERROR_NO_CONFIGURATIONS (1 << 1)
#define ERROR_GOT_CONFIGURATIONS (1 << 2)
#define ERROR_MOTOR_BLOCKED (1 << 3)
#define ERROR_TORQUE_APPLIED_DURING_POWER_ON (1 << 4)
#define ERROR_BRAKE_APPLIED_DURING_POWER_ON (1 << 5)
#define ERROR_THROTTLE_APPLIED_DURING_POWER_ON (1 << 6)
#define ERROR_NO_SPEED_SENSOR_DETECTED (1 << 7)

#endif /* COMMON_COMMON_H_ */
6 changes: 6 additions & 0 deletions src/controller/.project
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
<variableList>
<variable>
<name>Common</name>
<value>file:/home/cas/OpenSource-EBike-firmware/TSDZ2-Smart-EBike/src/common</value>
</variable>
</variableList>
</projectDescription>
Loading

0 comments on commit 606fedc

Please sign in to comment.