2019-03-01 12:36:58 -08:00
|
|
|
// This file is autogenerated by VESC Tool
|
|
|
|
|
|
|
|
#ifndef CONFGENERATOR_H_
|
|
|
|
#define CONFGENERATOR_H_
|
|
|
|
|
|
|
|
#include "datatypes.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
// Constants
|
2021-11-21 09:17:40 -08:00
|
|
|
#define MCCONF_SIGNATURE 2686986464
|
PAS: add constant torque control type
For gearless electric bicycles, riding up the slope and during start,
good torque support from the motor helps the rider ride with less
effort. Pedal assist based on cadence provides higher torque with higher
pedalling speed. In the situations mentioned above, where user naturally
pedals slow, aid from cadence based system is less. On a geared setup,
changing to low gear comes to the rider's help.
Here another control type is provided - Constant Torque, whenever the
rider pedals, motor would provide constant torque. The torque value can
be set using 'PAS max current' setting thus acting as fine PAS assist
level.
This type of control is similar to 'Basic PAS, constant throttle' of
'PAS Control Schemes' [1], with the difference that throttle setting
in that article corresponds to speed, while here torque.
Also riding experience on some of the popular (not high end) e-bicycles
having PAS indicates they might be having this kind of control
internally.
[1] https://ebikes.ca/learn/pedal-assist.html
2021-10-04 04:22:44 -07:00
|
|
|
#define APPCONF_SIGNATURE 763356168
|
2019-03-01 12:36:58 -08:00
|
|
|
|
|
|
|
// Functions
|
|
|
|
int32_t confgenerator_serialize_mcconf(uint8_t *buffer, const mc_configuration *conf);
|
|
|
|
int32_t confgenerator_serialize_appconf(uint8_t *buffer, const app_configuration *conf);
|
|
|
|
|
|
|
|
bool confgenerator_deserialize_mcconf(const uint8_t *buffer, mc_configuration *conf);
|
|
|
|
bool confgenerator_deserialize_appconf(const uint8_t *buffer, app_configuration *conf);
|
|
|
|
|
|
|
|
void confgenerator_set_defaults_mcconf(mc_configuration *conf);
|
|
|
|
void confgenerator_set_defaults_appconf(app_configuration *conf);
|
|
|
|
|
|
|
|
// CONFGENERATOR_H_
|
|
|
|
#endif
|